event Class Reference
class supports
event
More...
#include <primitives.h>
List of all members.
|
Public Types |
typedef HANDLE | _HANDLE_ |
Public Member Functions |
| event (bool manual_reset=false, bool init_state=false) |
| constructor
|
| ~event () |
| destructor
|
void | signal () const |
| signal event NB!!! can be used in the const member function
|
void | nonsignal () const |
| nonsignal event NB!!! can be used in the const member function
|
| operator _HANDLE_ () const |
| returns handle
|
size_t | wait (size_t timeout=INFINITE) const |
| waits for the signal state NB!!! can be used in the const member function
|
Private Member Functions |
| event (const event &x) |
| copy constructor
|
event & | operator= (const event &x) |
| assign operator
|
Private Attributes |
HANDLE | _handle |
| event handler
|
Detailed Description
class supports
event
Definition at line 147 of file primitives.h.
Member Typedef Documentation
Constructor & Destructor Documentation
event::event |
( |
const event & |
x |
) |
[private] |
copy constructor
prevents the copying of objects
event::event |
( |
bool |
manual_reset = false , |
|
|
bool |
init_state = false | |
|
) |
| | |
constructor
- Parameters:
-
manual_reset |
manual reset |
init_state |
initial state |
Definition at line 114 of file primitives.cpp.
References _handle.
Member Function Documentation
event& event::operator= |
( |
const event & |
x |
) |
[private] |
void event::signal |
( |
|
) |
const |
signal event NB!!! can be used in the const member function
Definition at line 145 of file primitives.cpp.
References _handle.
Referenced by thread::assign_job(), thread::cancel_job(), keylocker::leave(), keylocker::lock(), daemon::on_stop(), msg_wait_reply::set_reply(), thread::start_thread(), thread::stop(), keylocker::unlock(), aiosock::wait_for_io_completion(), aiofile::wait_for_io_completion(), and thread::wakeup().
void event::nonsignal |
( |
|
) |
const |
event::operator _HANDLE_ |
( |
|
) |
const [inline] |
size_t event::wait |
( |
size_t |
timeout = INFINITE |
) |
const |
Member Data Documentation
The documentation for this class was generated from the following files: