C# Class Plugin.Semaphore

Helps managing function calls in multithreaded environments
Mostra file Open project: Silveryard/SmartHome Class Usage Examples

Public Methods

Method 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 method

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

Enqueue() public method

Tells the semaphore so wait until its the invokers turn
public Enqueue ( ) : void
return void

Semaphore() public method

Creates a new instance
public Semaphore ( ) : System
return System

Wait() public method

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