Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:12:17

0001 // @(#)root/thread:$Id$
0002 // Author: Fons Rademakers   01/07/97
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TMutexImp
0013 #define ROOT_TMutexImp
0014 
0015 
0016 //////////////////////////////////////////////////////////////////////////
0017 //                                                                      //
0018 // TMutexImp                                                            //
0019 //                                                                      //
0020 // This class provides an abstract interface to the OS dependent mutex  //
0021 // classes (TPosixMutex and TWin32Mutex).                               //
0022 //                                                                      //
0023 //////////////////////////////////////////////////////////////////////////
0024 
0025 #include "TObject.h"
0026 
0027 class TMutexImp : public TObject {
0028 
0029 public:
0030    TMutexImp() { }
0031    virtual ~TMutexImp() { }
0032 
0033    virtual Int_t  Lock() = 0;
0034    virtual Int_t  TryLock() = 0;
0035    virtual Int_t  UnLock() = 0;
0036 
0037    ClassDefOverride(TMutexImp,0)  // Mutex lock implementation ABC
0038 };
0039 
0040 #endif