C# Class NSoft.NFramework.Parallelism.DataStructures.ActionCountdownEvent

Inheritance: IDisposable
显示文件 Open project: debop/NFramework Class Usage Examples

Public Methods

Method Description
ActionCountdownEvent ( int initialCount, System.Action action ) : System

생성자

AddCount ( ) : void

Countdown 수를 하나 늘린다.

Dispose ( ) : void

리소스 해제

Signal ( ) : void

Countdown 수를 하나 감소시키도록, 신호를 보냅니다. Countdown이 완료되면, 지정한 action을 수행합니다.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

리소스 해제

Method Details

ActionCountdownEvent() public method

생성자
public ActionCountdownEvent ( int initialCount, System.Action action ) : System
initialCount int 초기 countdown 수 (0보다 크거나 같아야 합니다)
action System.Action countdown이 끝나면 (countdown 수가 0가 되면) 수행할 action
return System

AddCount() public method

Countdown 수를 하나 늘린다.
public AddCount ( ) : void
return void

Dispose() public method

리소스 해제
public Dispose ( ) : void
return void

Dispose() protected method

리소스 해제
protected Dispose ( bool disposing ) : void
disposing bool
return void

Signal() public method

Countdown 수를 하나 감소시키도록, 신호를 보냅니다. Countdown이 완료되면, 지정한 action을 수행합니다.
public Signal ( ) : void
return void