TMutex


class description - source file - inheritance tree

class TMutex : public TObject


    public:
TMutex TMutex(Bool_t recursive = kFALSE) TMutex TMutex(TMutex&) virtual void ~TMutex() Int_t Acquire() static TClass* Class() Int_t CleanUp() virtual TClass* IsA() const Int_t Lock() Int_t Release() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) Int_t TryLock() Int_t UnLock()

Data Members

private:
TMutexImp* fMutexImp pointer to mutex implementation UInt_t fId id of thread which locked mutex Int_t fRef reference count in case of recursive locking by same thread

Class Description

                                                                      
 TMutex                                                               
                                                                      
 This class implements mutex locks. A mutex is a mutual exclusive     
 lock. The actual work is done via the TMutexImp class (either        
 TPosixMutex, TSolarisMutex or TNTMutex).                             
                                                                      


TMutex(Bool_t recursive)
 Create a mutex lock. The actual mutex implementation will be
 provided via the TThreadFactory.

Int_t Lock()
 Lock the mutex. Returns 0 when no error, 13 when mutex was already locked
 by this thread.

Int_t TryLock()
 Try to lock mutex. Returns 0 when no error, 13 when mutex was already
 locked by this thread.

Int_t UnLock()
 Unlock the mutex. Returns 0 when no error, 13 when mutex was already
 locked by this thread.

Int_t CleanUp()
 Clean up of mutex if it belongs to thread.



Inline Functions


              Int_t Acquire()
              Int_t Release()
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
             TMutex TMutex(TMutex&)
               void ~TMutex()


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


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.