Warning, file /include/root/TMutex.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TMutex
0013 #define ROOT_TMutex
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026 #include "TVirtualMutex.h"
0027 #include "TMutexImp.h"
0028
0029
0030 class TMutex : public TVirtualMutex {
0031
0032 friend class TCondition;
0033 friend class TThread;
0034
0035 private:
0036 TMutexImp *fMutexImp;
0037
0038 TMutex(const TMutex&) = delete;
0039 TMutex& operator=(const TMutex&) = delete;
0040
0041 public:
0042 TMutex(Bool_t recursive = kFALSE);
0043 virtual ~TMutex() { delete fMutexImp; }
0044
0045 Int_t Lock() override;
0046 Int_t TryLock() override;
0047 Int_t UnLock() override;
0048 Int_t CleanUp() override;
0049
0050
0051 void lock() { TMutex::Lock(); }
0052 void unlock() { TMutex::UnLock(); }
0053
0054 TVirtualMutex *Factory(Bool_t recursive = kFALSE) override;
0055
0056 ClassDefOverride(TMutex,0)
0057 };
0058
0059 #endif