ACE_Thread_Mutex_Guard(3)

ACE_Thread_Mutex_Guard3

This data structure is meant to be used within a method or function... it performs automatic aquisition and release of an ace_thread_mutex.

Usage

#include <ace/Synch.h>
class ACE_Thread_Mutex_Guard
{
  public:
    ACE_Thread_Mutex_Guard (ACE_Thread_Mutex &m, int block = 1);
    ~ACE_Thread_Mutex_Guard (void);
    int locked (void);
    int remove (void);
    int acquire (void);
    int tryacquire (void);
    int release (void);
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  protected:
    ACE_Thread_Mutex &lock_;
    int owner_;
  private:
    void operator= (const ACE_Thread_Mutex_Guard &);
    ACE_Thread_Mutex_Guard (const ACE_Thread_Mutex_Guard &);
};

Overview

Wrappers for various synchronization routines.

Prevent assignment and initialization.

void operator= (const ACE_Thread_Mutex_Guard &);
ACE_Thread_Mutex_Guard (const ACE_Thread_Mutex_Guard &);

Library

ace

Author

Doug Schmidt

From libace-doc 5.0.7-4 in Debian 2.2 (Potato). Parsed by carta from the page's man source.