C# Class Aegis.Threading.SpinWorker

Datei anzeigen Open project: SyncZone/AegisFramework

Public Methods

Method Description
Dispatch ( System.Action actionDispatch ) : void

actionDispatch 작업을 DispatchThread에서 실행합니다.

Initialize ( ) : void
Release ( ) : void
Work ( System.Action actionWork ) : void

actionWork 작업을 WorkerThread에서 실행합니다.

Work ( System.Action actionWork, System.Action actionDispatch ) : void

비동기 백그라운드 작업과 결과처리 작업으로 이루어진 기능을 실행합니다. actionWork는 WorkerThread에 의해 비동기로 실행되고, actionWork 작업이 끝나면 actionDispatch가 DispatchThread에서 실행됩니다. actionWork에서 exception이 발생되면 actionDispatch 작업은 실행되지 않습니다.

Private Methods

Method Description
IncreaseThread ( WorkerThread target, int threadCount ) : void

Method Details

Dispatch() public static method

actionDispatch 작업을 DispatchThread에서 실행합니다.
public static Dispatch ( System.Action actionDispatch ) : void
actionDispatch System.Action 수행할 작업
return void

Initialize() public static method

public static Initialize ( ) : void
return void

Release() public static method

public static Release ( ) : void
return void

Work() public static method

actionWork 작업을 WorkerThread에서 실행합니다.
public static Work ( System.Action actionWork ) : void
actionWork System.Action 수행할 작업
return void

Work() public static method

비동기 백그라운드 작업과 결과처리 작업으로 이루어진 기능을 실행합니다. actionWork는 WorkerThread에 의해 비동기로 실행되고, actionWork 작업이 끝나면 actionDispatch가 DispatchThread에서 실행됩니다. actionWork에서 exception이 발생되면 actionDispatch 작업은 실행되지 않습니다.
public static Work ( System.Action actionWork, System.Action actionDispatch ) : void
actionWork System.Action 비동기로 실행할 작업
actionDispatch System.Action DispatchThread에서 실행할 작업
return void