C# Class Plugin.Semaphore

Helps managing function calls in multithreaded environments
Afficher le fichier Open project: Silveryard/SmartHome Class Usage Examples

Méthodes publiques

Méthode Description
Dequeue ( ) : void

Tells the semaphore that the current object is done with its work

Enqueue ( ) : void

Tells the semaphore so wait until its the invokers turn

Semaphore ( ) : System

Creates a new instance

Wait ( object obj ) : void

Waits until its the specified objects turn

Method Details

Dequeue() public méthode

Tells the semaphore that the current object is done with its work
public Dequeue ( ) : void
Résultat void

Enqueue() public méthode

Tells the semaphore so wait until its the invokers turn
public Enqueue ( ) : void
Résultat void

Semaphore() public méthode

Creates a new instance
public Semaphore ( ) : System
Résultat System

Wait() public méthode

Waits until its the specified objects turn
public Wait ( object obj ) : void
obj object The waiting object
Résultat void