library: libThread #include "TPosixMutex.h"

# TPosixMutex

class description - source file - inheritance tree (.pdf)

## class TPosixMutex : public TMutexImp

| Inheritance Chart:
`TObject`
| <- | `TMutexImp`
| <- | `TPosixMutex` |

        public:

                          TPosixMutex()
                          TPosixMutex(const TPosixMutex&)
                  virtual ~TPosixMutex()
           static TClass* Class()
          virtual TClass* IsA() const
            virtual Int_t Lock()
             TPosixMutex& operator=(const TPosixMutex&)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)
            virtual Int_t TryLock()
            virtual Int_t UnLock()

### Data Members

        private:

          pthread_mutex_t fMutex  the pthread mutex

## Class Description

     TPosixMutex

     This class provides an interface to the posix mutex routines.

TPosixMutex()

     Create a posix mutex lock.

~TPosixMutex()

     TMutex dtor.

Int_t Lock()

     Lock the mutex.

Int_t TryLock()

     Try locking the mutex. Returns 0 if mutex can be locked.

Int_t UnLock(void)

     Unlock the mutex.

### Inline Functions

                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
                    void StreamerNVirtual(TBuffer& b)
             TPosixMutex TPosixMutex(const TPosixMutex&)
            TPosixMutex& operator=(const TPosixMutex&)

Author: Fons Rademakers 25/06/97
Last update: root/thread:$Name: $:$Id: TPosixMutex.cxx,v 1.1.1.1 2000/05/16 17:00:48 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *