#include <MboSynch.h>
Public Member Functions | |
virtual | ~IEvent () |
virtual void | Set ()=0 |
virtual void | Reset ()=0 |
virtual void | Pulse ()=0 |
virtual bool | Wait (size_t nTime=INFINITE) const =0 |
Definition at line 289 of file MboSynch.h.
virtual mbo::IEvent::~IEvent | ( | ) | [inline, virtual] |
virtual void mbo::IEvent::Set | ( | ) | [pure virtual] |
Set the signal into the signaled state.
Implemented in mbo::CEventImpl, and mbo::CEventFake.
virtual void mbo::IEvent::Reset | ( | ) | [pure virtual] |
Set the signal into the not signaled state.
Implemented in mbo::CEventImpl, and mbo::CEventFake.
virtual void mbo::IEvent::Pulse | ( | ) | [pure virtual] |
Switch the signal to signaled and then -If no thread waits: switch back to not signaled. -If threads are waiting: In automatic reset mode only one thread can pass the Wait(). After this one thread the signal is switched back to not signaled. In manual reset mode all waiting threads pass Wait(). After all waiting threads have passed Wait(), the signal is switched back to not signaled.
Implemented in mbo::CEventImpl, and mbo::CEventFake.
virtual bool mbo::IEvent::Wait | ( | size_t | nTime = INFINITE |
) | const [pure virtual] |
Pulse (wait & reset) the event.
If the signal is in signaled state: passes the function will return. If the signal is in not signaled state: wait until time elaspes. In automatic reset mode: set signal to not signaled on leaving the method.
nTime | time to wait in milliseconds. |
Implemented in mbo::CEventImpl.
Hosted on code.google.com | © Marcus Börger | Generated on Fri Jan 18 21:21:12 2008 for MBO-lib by ![]() |