#include <event.h>
Public Types | |
| enum | EventType { type_native, type_socket_read, type_socket_write, type_socket_exception } |
| Construction:. More... | |
Public Member Functions | |
| CL_Event (bool manual_reset=false, bool initial_state=false) | |
| CL_Event (CL_SocketEventHandler *socket_handler, EventType type) | |
| ~CL_Event () | |
| bool | wait (int timeout=-1) const |
| Operations:. | |
| void | set () |
| void | reset () |
Static Public Member Functions | |
| static int | wait (int count, CL_Event const *const *events, int timeout=-1, bool wait_all=false) |
| static int | wait (const std::vector< CL_Event * > &events, int timeout=-1, bool wait_all=false) |
Private Member Functions | |
| CL_Event (const CL_Event ©) | |
| Implementation:. | |
| CL_Event & | operator= (const CL_Event ©) |
Private Attributes | |
| CL_Mutex | mutex |
| bool | manual_reset |
| bool | state |
| int | wait_sockets [2] |
| EventType | type |
| CL_SocketEventHandler * | socket_handler |
|
|
Construction:.
|
|
||||||||||||
|
Definition at line 73 of file event.cpp. References TEXT. |
|
||||||||||||
|
Definition at line 81 of file event.cpp. References TEXT, and type_native. |
|
|
Definition at line 88 of file event.cpp. References type_native, and wait_sockets. |
|
|
Implementation:.
Definition at line 412 of file event.cpp. References TEXT. |
|
|
Definition at line 417 of file event.cpp. References TEXT. |
|
|
Definition at line 389 of file event.cpp. References mutex, state, TEXT, type_native, and wait_sockets. |
|
|
Definition at line 369 of file event.cpp. References mutex, state, TEXT, type_native, and wait_sockets. Referenced by CL_Service::sig_hup(), and CL_Service::sig_term(). |
|
||||||||||||||||
|
Definition at line 361 of file event.cpp. References wait(). |
|
||||||||||||||||||||
|
Definition at line 215 of file event.cpp. References mutex, CL_SocketEventHandler::socket_handle, socket_handler, state, TEXT, type_native, type_socket_exception, type_socket_read, type_socket_write, and wait_sockets. |
|
|
Operations:.
Definition at line 106 of file event.cpp. References mutex, state, TEXT, type_native, type_socket_exception, type_socket_read, type_socket_write, and wait_sockets. Referenced by CL_Service::main(), CL_DNSResolver::perform_query(), and wait(). |
|
|
|
|
|
|
|
|
Definition at line 88 of file event.h. Referenced by wait(). |
|
|
|
|
|
|
|
|
Definition at line 84 of file event.h. Referenced by reset(), set(), wait(), and ~CL_Event(). |
1.4.1