In file conditn.hxx:

namespace vos class ICondition

ICondition Interface for a thread-spanning condition

Inheritance:


Public Methods

virtual Boolean check ()
True: condition is set
False: condition is not set
does not block
virtual void reset ()
set condition to False => wait() will block, check() returns False
virtual void set ()
set condition to True => wait() will not block, check() returns True
virtual Boolean wait ()
Blocks if condition is not set
If condition has been destroyed prematurely, wait() will return with False

Documentation

ICondition Interface for a thread-spanning condition. If a condition-object is created, its initial condition is False. You can check the condition nonblocking with "check()" or wait for it to become set with "wait()". The methods "set()" and "reset()" are used to change the conditions state.
virtual void set()
set condition to True => wait() will not block, check() returns True

virtual void reset()
set condition to False => wait() will block, check() returns False

virtual Boolean wait()
Blocks if condition is not set
If condition has been destroyed prematurely, wait() will return with False

virtual Boolean check()
True: condition is set
False: condition is not set
does not block


Direct child classes:
OCondition
Author:
Bernd Hofner
Version:
1.0

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de