C# Класс Netronics.Scheduling.Scheduler

Netronics의 Worker Thread를 관리 해주는 스케줄러 클래스
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Default Scheduler

Открытые методы

Метод Описание
GetThreadCount ( ) : int

SetThreadCount 메소드로 설정한 Thread의 갯수를 반환하는 메소드

QueueWorkItem ( int index, System.Action action ) : void

해당 index에 맞는 Worker Thread의 작업 큐의 맨 끝에 Action을 추가하는 메소드 같은 index를 가지는 Action은 모두 같은 스래드에서 처리된다.

RunMicrothread ( int index, Microthread microthread ) : void

해당 index에 맞는 Worker Thread에서 Microthread를 시작하는 메소드

Scheduler ( int count = 4, int defaultTimeout = -1 ) : System
SetCurrentTimeout ( int time, System.Action action ) : void
SetDefaultTimeout ( int warning = 1000, int timeout = -1 ) : void
SetThreadCount ( int count, bool background = false ) : void

Worker Therad의 갯수와 Background 여부를 지정하는 메소드 단, SetThreadCount 메소드는 Netronics가 시작되기전에 호출하여야 함

Приватные методы

Метод Описание
Monitoring ( ) : void

Worker Thread를 모니터링 하는 Thread의 메인 Loop

Описание методов

GetThreadCount() публичный Метод

SetThreadCount 메소드로 설정한 Thread의 갯수를 반환하는 메소드
public GetThreadCount ( ) : int
Результат int

QueueWorkItem() публичный Метод

해당 index에 맞는 Worker Thread의 작업 큐의 맨 끝에 Action을 추가하는 메소드 같은 index를 가지는 Action은 모두 같은 스래드에서 처리된다.
public QueueWorkItem ( int index, System.Action action ) : void
index int 작업구분을 위한 index
action System.Action 호출할 Action
Результат void

RunMicrothread() публичный Метод

해당 index에 맞는 Worker Thread에서 Microthread를 시작하는 메소드
public RunMicrothread ( int index, Microthread microthread ) : void
index int 작업구분을 위한 index
microthread Netronics.Scheduling.Microthreading.Microthread 시작할 Microthread
Результат void

Scheduler() публичный Метод

public Scheduler ( int count = 4, int defaultTimeout = -1 ) : System
count int
defaultTimeout int
Результат System

SetCurrentTimeout() публичный Метод

public SetCurrentTimeout ( int time, System.Action action ) : void
time int
action System.Action
Результат void

SetDefaultTimeout() публичный Метод

public SetDefaultTimeout ( int warning = 1000, int timeout = -1 ) : void
warning int
timeout int
Результат void

SetThreadCount() публичный Метод

Worker Therad의 갯수와 Background 여부를 지정하는 메소드 단, SetThreadCount 메소드는 Netronics가 시작되기전에 호출하여야 함
public SetThreadCount ( int count, bool background = false ) : void
count int Thread 갯수
background bool Background 여부
Результат void

Описание свойств

Default публичное статическое свойство

public static Scheduler,Netronics.Scheduling Default
Результат Scheduler