|
Boost : |
From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2001-07-19 14:43:07
> > which is simply a convenient way to deal with
> > (acq/rel) LOCKS (mutexes, semaphores,
> > read/write locks, spinlocks,...).
>
> A mutex is not a lock, though.
are you kidding ?
well, fyi..
/**
* @class ACE_Thread_Mutex_Guard
*
* @brief This data structure is meant to be used within a method or
* function... It performs automatic aquisition and release of
* an <ACE_Thread_Mutex>.
*
* This class is obsolete and should be replaced by
* ACE_Guard<ACE_Thread_Mutex>.
*/
class ACE_Export ACE_Thread_Mutex_Guard
{
.
.
.
protected:
/// Reference to the mutex.
ACE_Thread_Mutex &lock_;
^^^^^^ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
also, fyi..
/**
* @class ACE_Guard
*
* @brief This data structure is meant to be used within a method or
* function... It performs automatic aquisition and release of
* a parameterized synchronization object <ACE_LOCK>.
^^^^ !!!!!!!!!!!!!!
*
* The <ACE_LOCK> class given as an actual parameter must provide at
* the very least the <acquire>, <tryacquire>, <release>, and
* <remove> methods.
*/
template <class ACE_LOCK>
class ACE_Guard
{
public:
// = Initialization and termination methods.
ACE_Guard (ACE_LOCK &l);
regards,
alexander.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk