ACE_Mutex(3)

ACE_Mutex3

Ace_mutex wrapper (valid in same process or across processes (depending on type flag)).

Usage

#include <ace/Synch.h>
class ACE_Mutex
{
  public:
    ACE_Mutex (
        int type = USYNC_THREAD,
        LPCTSTR name = 0,
        void *arg = 0
        );
    ~ACE_Mutex (void);
    int remove (void);
    int acquire (void);
    int tryacquire (void);
    int release (void);
    int acquire_read (void);
    int acquire_write (void);
    int tryacquire_read (void);
    int tryacquire_write (void);
    const ACE_mutex_t &lock (void) const;
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  protected:
    ACE_mutex_t *process_lock_;
    LPCTSTR lockname_;
    ACE_mutex_t lock_;
    int removed_;
  private:
    void operator= (const ACE_Mutex &);
    ACE_Mutex (const ACE_Mutex &);
};

Overview

Wrappers for various synchronization routines.

Prevent assignment and initialization.

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

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.