## NAME

ACE_Mutex - `ACE_Mutex` wrapper (valid in same process or across processes (depending on TYPE flag)).

## SYNOPSIS

    #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 &);
    };

## DESCRIPTION

Wrappers for various synchronization routines.

## Prevent assignment and initialization.

    void operator= (const ACE_Mutex &);

    ACE_Mutex (const ACE_Mutex &);

## AUTHOR

Doug Schmidt

## LIBRARY

ace