Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CL_Event Class Reference

#include <event.h>

List of all members.

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 &copy)
 Implementation:.
CL_Eventoperator= (const CL_Event &copy)

Private Attributes

CL_Mutex mutex
bool manual_reset
bool state
int wait_sockets [2]
EventType type
CL_SocketEventHandlersocket_handler


Member Enumeration Documentation

enum CL_Event::EventType
 

Construction:.

Enumeration values:
type_native 
type_socket_read 
type_socket_write 
type_socket_exception 

Definition at line 40 of file event.h.


Constructor & Destructor Documentation

CL_Event::CL_Event bool  manual_reset = false,
bool  initial_state = false
 

Definition at line 73 of file event.cpp.

References TEXT.

CL_Event::CL_Event CL_SocketEventHandler socket_handler,
EventType  type
 

Definition at line 81 of file event.cpp.

References TEXT, and type_native.

CL_Event::~CL_Event  ) 
 

Definition at line 88 of file event.cpp.

References type_native, and wait_sockets.

CL_Event::CL_Event const CL_Event copy  )  [private]
 

Implementation:.

Definition at line 412 of file event.cpp.

References TEXT.


Member Function Documentation

CL_Event & CL_Event::operator= const CL_Event copy  )  [private]
 

Definition at line 417 of file event.cpp.

References TEXT.

void CL_Event::reset  ) 
 

Definition at line 389 of file event.cpp.

References mutex, state, TEXT, type_native, and wait_sockets.

void CL_Event::set  ) 
 

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().

int CL_Event::wait const std::vector< CL_Event * > &  events,
int  timeout = -1,
bool  wait_all = false
[static]
 

Definition at line 361 of file event.cpp.

References wait().

int CL_Event::wait int  count,
CL_Event const *const *  events,
int  timeout = -1,
bool  wait_all = false
[static]
 

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.

bool CL_Event::wait int  timeout = -1  )  const
 

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().


Member Data Documentation

bool CL_Event::manual_reset [private]
 

Definition at line 80 of file event.h.

CL_Mutex CL_Event::mutex [mutable, private]
 

Definition at line 78 of file event.h.

Referenced by reset(), set(), and wait().

CL_SocketEventHandler* CL_Event::socket_handler [private]
 

Definition at line 88 of file event.h.

Referenced by wait().

bool CL_Event::state [mutable, private]
 

Definition at line 82 of file event.h.

Referenced by reset(), set(), and wait().

EventType CL_Event::type [private]
 

Definition at line 86 of file event.h.

int CL_Event::wait_sockets[2] [private]
 

Definition at line 84 of file event.h.

Referenced by reset(), set(), wait(), and ~CL_Event().


The documentation for this class was generated from the following files:
Generated on Sat Feb 19 22:51:17 2005 for npcore by  doxygen 1.4.1