|
|
class CEvent
Class implementing a event object. A event is a sinchronization object for multithread programming. If the event is not signaled (initial state) the thread calling Lock() don't lock. If the event is signaled (ResetEvent as called) call to Lock() cause a lock on thread until SetEvent or PulseEvent as called. PulseEvent is a one shot function.
CEvent (BOOL initialLock = FALSE, BOOL manualIgnored = TRUE )
| CEvent |
Build the event with the supplied parameter.
~CEvent ()
| ~CEvent |
[virtual]
Destroy the event object.
void SetEvent ()
| SetEvent |
[virtual]
Set the event signaled. This object don't lock thread now. All waiting thread will be notified to restart.
void ResetEvent ()
| ResetEvent |
[virtual]
Reset the event signaled. This object lock threads now.
void PulseEvent ()
| PulseEvent |
[virtual]
It's one shot function: unlock the waiting thread at this time, but don't change the state of the object.
int Lock ()
| Lock |
[virtual]
The calling thread try to authorized itself to execution of the following piece of code. If the object is not in signaled state the thread will be locked until someone signal it.
Reimplemented from CSyncObject.
int Unlock ()
| Unlock |
[virtual]
Not used in this syncronization object.
Reimplemented from CSyncObject.
int Try ()
| Try |
[virtual]
Try to acquire the locking without really lock the thread. Not yet implemented.
Reimplemented from CSyncObject.
pthread_mutex_t mutex | mutex |
[protected]
pthread_cond_t event | event |
[protected]
BOOL locknow | locknow |
[protected]
Generated by: nicola on gulliver.wadahome.it on Sun May 25 13:54:34 2003, using kdoc 2.0a53. |