next up previous contents
Next: The Mutex class Up: Reference of Practical Thread Previous: The ISema class

The ILock class

# include  <ucr/ILock.h>
class ILock;

The ILock class implements a binary semaphore. Where the counting semaphore may have a large number of values, the binary semaphore has exactly two: true and false, or 1 and 0. This class is also built up from the ISync class.

Stephen Williams