C# 클래스 Netronics.Scheduling.Worker

파일 보기 프로젝트 열기: shlee322/Netronics 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
_count int
_queue ConcurrentQueue
_run bool
_thread Thread
_time int
_work bool

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
Loop ( ) : void

Worker Thread의 메인 Loop 메소드

메소드 상세

GetTimeout() 공개 메소드

public GetTimeout ( ) : int
리턴 int

QueueWorkItem() 공개 메소드

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

RunMicrothread() 공개 메소드

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

SetBackground() 공개 메소드

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

SetTimeout() 공개 메소드

public SetTimeout ( int ms ) : void
ms int
리턴 void

Worker() 공개 메소드

public Worker ( ) : System
리턴 System

프로퍼티 상세

_count 공개적으로 프로퍼티

public int _count
리턴 int

_queue 공개적으로 프로퍼티

public ConcurrentQueue _queue
리턴 ConcurrentQueue

_run 공개적으로 프로퍼티

public bool _run
리턴 bool

_thread 공개적으로 프로퍼티

public Thread _thread
리턴 Thread

_time 공개적으로 프로퍼티

public int _time
리턴 int

_work 공개적으로 프로퍼티

public bool _work
리턴 bool