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

keylocker_server Class Reference

automatic locker keeper More...

#include <keymaker.h>

List of all members.

Public Member Functions

 keylocker_server (const keylocker &locker, size_t timeout=INFINITE)
 constructor
 ~keylocker_server ()
 destructor
 operator bool () const
 checks the locked state
bool operator! () const
 checks the locked state
void unlock () const
 unlocks explicitly
void lock (size_t timeout=INFINITE) const
 locks explicitly

Private Attributes

bool _locked
 flag door is locked
const keylocker_locker
 keylocker object


Detailed Description

automatic locker keeper

Definition at line 79 of file keymaker.h.


Constructor & Destructor Documentation

keylocker_server::keylocker_server ( const keylocker locker,
size_t  timeout = INFINITE 
) [inline]

constructor

Parameters:
locker  keylocker object
timeout  timeout in milliseconds

Definition at line 230 of file keymaker.hpp.

References _locked, _locker, and keylocker::lock().

keylocker_server::~keylocker_server (  )  [inline]

destructor

Definition at line 239 of file keymaker.hpp.

References _locked, _locker, and keylocker::unlock().


Member Function Documentation

keylocker_server::operator bool (  )  const [inline]

checks the locked state

Definition at line 248 of file keymaker.hpp.

References _locked.

bool keylocker_server::operator! (  )  const [inline]

checks the locked state

Definition at line 255 of file keymaker.hpp.

References _locked.

void keylocker_server::unlock (  )  const [inline]

unlocks explicitly

Definition at line 263 of file keymaker.hpp.

References _locked, _locker, and keylocker::unlock().

void keylocker_server::lock ( size_t  timeout = INFINITE  )  const [inline]

locks explicitly

Definition at line 272 of file keymaker.hpp.

References _locked, _locker, and keylocker::lock().


Member Data Documentation

bool keylocker_server::_locked [mutable, private]

flag door is locked

Definition at line 106 of file keymaker.h.

Referenced by keylocker_server(), lock(), operator bool(), operator!(), unlock(), and ~keylocker_server().

keylocker object

Definition at line 107 of file keymaker.h.

Referenced by keylocker_server(), lock(), unlock(), and ~keylocker_server().


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


© Copyright Terimber 2003-.