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

semaphore_keeper Class Reference

automatic semaphore keeper More...

#include <primitives.h>

List of all members.

Public Member Functions

 semaphore_keeper (const semaphore &sema, size_t timeout=INFINITE)
 constructor
 ~semaphore_keeper ()
 destructor
 operator bool () const
 checks the access state
bool operator! () const
 operator!

Private Attributes

const semaphore_sema
 semaphore reference
bool _approved
 result of accessing


Detailed Description

automatic semaphore keeper

Definition at line 249 of file primitives.h.


Constructor & Destructor Documentation

semaphore_keeper::semaphore_keeper ( const semaphore sema,
size_t  timeout = INFINITE 
) [inline]

constructor

Parameters:
sema  semaphore reference
timeout  timeout in milliseconds

Definition at line 253 of file primitives.h.

References _approved, _sema, and semaphore::wait().

semaphore_keeper::~semaphore_keeper (  )  [inline]

destructor

Definition at line 260 of file primitives.h.

References _approved, _sema, and semaphore::release().


Member Function Documentation

semaphore_keeper::operator bool (  )  const [inline]

checks the access state

Definition at line 267 of file primitives.h.

References _approved.

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

operator!

Definition at line 274 of file primitives.h.

References _approved.


Member Data Documentation

semaphore reference

Definition at line 280 of file primitives.h.

Referenced by semaphore_keeper(), and ~semaphore_keeper().

result of accessing

Definition at line 281 of file primitives.h.

Referenced by operator bool(), operator!(), semaphore_keeper(), and ~semaphore_keeper().


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


© Copyright Terimber 2003-.