Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

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
eventoperator= (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

typedef HANDLE event::_HANDLE_

Definition at line 158 of file primitives.h.


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.

event::~event (  ) 

destructor

Definition at line 130 of file primitives.cpp.

References _handle.


Member Function Documentation

event& event::operator= ( const event x  )  [private]

assign operator

void event::nonsignal (  )  const

nonsignal event NB!!! can be used in the const member function

Definition at line 165 of file primitives.cpp.

References _handle.

Referenced by keylocker::lock(), and thread::start().

event::operator _HANDLE_ (  )  const [inline]

returns handle

Definition at line 184 of file primitives.h.

References _handle.

size_t event::wait ( size_t  timeout = INFINITE  )  const

waits for the signal state NB!!! can be used in the const member function

Parameters:
timeout  timeout in milliseconds

Definition at line 179 of file primitives.cpp.

References _handle.

Referenced by keylocker::enter(), keylocker::lock(), aiosock::off(), aiofile::off(), aiosock::on(), aiofile::on(), daemon::on_run(), thread::sleep(), thread::start(), and thread::stop().


Member Data Documentation

HANDLE event::_handle [mutable, private]

event handler

Definition at line 200 of file primitives.h.

Referenced by event(), nonsignal(), operator _HANDLE_(), signal(), wait(), and ~event().


The documentation for this class was generated from the following files:


© Copyright Terimber 2003-.