21 #ifndef FXCOMPLETION_H 22 #define FXCOMPLETION_H 44 volatile FXuint counter;
54 FXuint
count()
const {
return counter; }
57 void increment(FXuint cnt=1);
60 void decrement(FXuint cnt=1);
66 FXbool wait(FXTime nsec);
69 FXbool
done()
const {
return (counter==0); }
A semaphore allows for protection of a resource that can be accessed by a fixed number of simultaneou...
Definition: FXSemaphore.h:38
FXbool done() const
Return true if count is zero.
Definition: FXCompletion.h:69
Definition: FX4Splitter.h:28
A completion counter allows a single thread to monitor a number of ongoing concurrent activities for ...
Definition: FXCompletion.h:41
FXuint count() const
Return current counter value.
Definition: FXCompletion.h:54