fm.liveswitch.ManagedCondition Class Reference

A managed condition. More...

Public Member Functions

void halt ()
 Releases the lock on an object and blocks the current thread until it reacquires the lock. More...
 
boolean halt (int millisecondsTimeout)
 Releases the lock on an object and blocks the current thread until it reacquires the lock. More...
 
void pulse ()
 Notifies a thread in the waiting queue of a change in the locked object's state. More...
 
void pulseAll ()
 Notifies all waiting threads of a change in the object's state. More...
 

Detailed Description

A managed condition.

Member Function Documentation

◆ halt() [1/2]

void fm.liveswitch.ManagedCondition.halt ( )

Releases the lock on an object and blocks the current thread until it reacquires the lock.

◆ halt() [2/2]

boolean fm.liveswitch.ManagedCondition.halt ( int  millisecondsTimeout)

Releases the lock on an object and blocks the current thread until it reacquires the lock.

Parameters
millisecondsTimeoutThe number of milliseconds to wait before the thread enters the ready queue.

◆ pulse()

void fm.liveswitch.ManagedCondition.pulse ( )

Notifies a thread in the waiting queue of a change in the locked object's state.

◆ pulseAll()

void fm.liveswitch.ManagedCondition.pulseAll ( )

Notifies all waiting threads of a change in the object's state.