Logo ROOT   6.12/07
Reference Guide
TPosixThreadFactory.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 
13 #ifndef ROOT_TPosixThreadFactory
14 #define ROOT_TPosixThreadFactory
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TPosixThreadFactory //
19 // //
20 // This is a factory for Posix thread components. //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #include "TThreadFactory.h"
25 
26 class TMutexImp;
27 class TConditionImp;
28 class TThreadImp;
29 
30 
32 
33 public:
34  TPosixThreadFactory(const char *name = "Posix", const char *title = "Posix Thread Factory");
35  virtual ~TPosixThreadFactory() { }
36 
37  virtual TMutexImp *CreateMutexImp(Bool_t recursive);
39  virtual TThreadImp *CreateThreadImp();
40 
41  ClassDef(TPosixThreadFactory,0) // Posix thread factory
42 };
43 
44 #endif
auto * m
Definition: textangle.C:8
bool Bool_t
Definition: RtypesCore.h:59
#define ClassDef(name, id)
Definition: Rtypes.h:320
TPosixThreadFactory(const char *name="Posix", const char *title="Posix Thread Factory")
Create Posix thread factory. Also sets global gThreadFactory to this.
virtual TThreadImp * CreateThreadImp()
Return a Posix thread.
virtual TConditionImp * CreateConditionImp(TMutexImp *m)
Return a Posix condition variable.
virtual TMutexImp * CreateMutexImp(Bool_t recursive)
Return a Posix Mutex.
char name[80]
Definition: TGX11.cxx:109