Class ManagedCondition
A managed condition.
Inheritance
System.Object
ManagedCondition
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class ManagedCondition
Methods
Halt()
Releases the lock on an object and blocks the current thread until it reacquires the lock.
Declaration
public void Halt()
Halt(Int32)
Releases the lock on an object and blocks the current thread until it reacquires the lock.
Declaration
public bool Halt(int millisecondsTimeout)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | millisecondsTimeout | The number of milliseconds to wait before the thread enters the ready queue. |
Returns
Type | Description |
---|---|
System.Boolean |
Pulse()
Notifies a thread in the waiting queue of a change in the locked object's state.
Declaration
public void Pulse()
PulseAll()
Notifies all waiting threads of a change in the object's state.
Declaration
public void PulseAll()