C# Class Netronics.Scheduling.Worker

Afficher le fichier Open project: shlee322/Netronics Class Usage Examples

Méthodes publiques

Свойство Type Description
_count int
_queue ConcurrentQueue
_run bool
_thread Thread
_time int
_work bool

Méthodes publiques

Méthode Description
GetTimeout ( ) : int
QueueWorkItem ( System.Action action ) : void

Worker Thread의 작업 큐의 맨 끝에 Action을 추가하는 메소드

RunMicrothread ( Microthread microthread ) : void

Microthread를 시작하는 메소드

SetBackground ( bool background ) : void

Worker Thread가 Background에서 돌아갈지 설정하는 메소드

SetTimeout ( int ms ) : void
Worker ( ) : System

Private Methods

Méthode Description
Loop ( ) : void

Worker Thread의 메인 Loop 메소드

Method Details

GetTimeout() public méthode

public GetTimeout ( ) : int
Résultat int

QueueWorkItem() public méthode

Worker Thread의 작업 큐의 맨 끝에 Action을 추가하는 메소드
public QueueWorkItem ( System.Action action ) : void
action System.Action 호출할 Action
Résultat void

RunMicrothread() public méthode

Microthread를 시작하는 메소드
public RunMicrothread ( Microthread microthread ) : void
microthread Netronics.Scheduling.Microthreading.Microthread 시작할 Microthread
Résultat void

SetBackground() public méthode

Worker Thread가 Background에서 돌아갈지 설정하는 메소드
public SetBackground ( bool background ) : void
background bool Background 여부
Résultat void

SetTimeout() public méthode

public SetTimeout ( int ms ) : void
ms int
Résultat void

Worker() public méthode

public Worker ( ) : System
Résultat System

Property Details

_count public_oe property

public int _count
Résultat int

_queue public_oe property

public ConcurrentQueue _queue
Résultat ConcurrentQueue

_run public_oe property

public bool _run
Résultat bool

_thread public_oe property

public Thread _thread
Résultat Thread

_time public_oe property

public int _time
Résultat int

_work public_oe property

public bool _work
Résultat bool