ROOT
6.12/07
Reference Guide
core
thread
inc
TMutexImp.h
Go to the documentation of this file.
1
// @(#)root/thread:$Id$
2
// Author: Fons Rademakers 01/07/97
3
4
/*************************************************************************
5
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
#ifndef ROOT_TMutexImp
13
#define ROOT_TMutexImp
14
15
16
//////////////////////////////////////////////////////////////////////////
17
// //
18
// TMutexImp //
19
// //
20
// This class provides an abstract interface to the OS dependent mutex //
21
// classes (TPosixMutex and TWin32Mutex). //
22
// //
23
//////////////////////////////////////////////////////////////////////////
24
25
#include "
Rtypes.h
"
26
#include "
TObject.h
"
27
28
#include "
TVirtualMutex.h
"
29
30
class
TMutexImp
:
public
TObject
{
31
32
public
:
33
TMutexImp
() { }
34
virtual
~TMutexImp
() { }
35
36
virtual
Int_t
Lock
() = 0;
37
virtual
Int_t
TryLock
() = 0;
38
virtual
Int_t
UnLock
() = 0;
39
40
ClassDef
(
TMutexImp
,0)
// Mutex lock implementation ABC
41
};
42
43
#endif
Rtypes.h
Int_t
int Int_t
Definition:
RtypesCore.h:41
TMutexImp::TMutexImp
TMutexImp()
Definition:
TMutexImp.h:33
TMutexImp::Lock
virtual Int_t Lock()=0
TVirtualMutex.h
ClassDef
#define ClassDef(name, id)
Definition:
Rtypes.h:320
TMutexImp::UnLock
virtual Int_t UnLock()=0
TMutexImp::TryLock
virtual Int_t TryLock()=0
TMutexImp::~TMutexImp
virtual ~TMutexImp()
Definition:
TMutexImp.h:34
TObject
Mother of all ROOT objects.
Definition:
TObject.h:37
TMutexImp
Definition:
TMutexImp.h:30
TObject.h