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

Inheritance: IDisposable
Afficher le fichier Open project: debop/NFramework Class Usage Examples

Méthodes publiques

Méthode Description
ActionCountdownEvent ( int initialCount, System.Action action ) : System

생성자

AddCount ( ) : void

Countdown 수를 하나 늘린다.

Dispose ( ) : void

리소스 해제

Signal ( ) : void

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

리소스 해제

Method Details

ActionCountdownEvent() public méthode

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

AddCount() public méthode

Countdown 수를 하나 늘린다.
public AddCount ( ) : void
Résultat void

Dispose() public méthode

리소스 해제
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

리소스 해제
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Signal() public méthode

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