C# Class Netronics.Scheduling.Worker

ファイルを表示 Open project: shlee322/Netronics Class Usage Examples

Public Properties

Property Type Description
_count int
_queue ConcurrentQueue
_run bool
_thread Thread
_time int
_work bool

Public Methods

Method 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

Method Description
Loop ( ) : void

Worker Thread의 메인 Loop 메소드

Method Details

GetTimeout() public method

public GetTimeout ( ) : int
return int

QueueWorkItem() public method

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

RunMicrothread() public method

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

SetBackground() public method

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

SetTimeout() public method

public SetTimeout ( int ms ) : void
ms int
return void

Worker() public method

public Worker ( ) : System
return System

Property Details

_count public_oe property

public int _count
return int

_queue public_oe property

public ConcurrentQueue _queue
return ConcurrentQueue

_run public_oe property

public bool _run
return bool

_thread public_oe property

public Thread _thread
return Thread

_time public_oe property

public int _time
return int

_work public_oe property

public bool _work
return bool