ROOT
Version master
master
v6.34
v6.32
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
v6.04
Reference Guide
▼
ROOT
ROOT Reference Documentation
Tutorials
►
Functional Parts
►
Namespaces
►
All Classes
▼
Files
▼
File List
►
bindings
▼
core
►
base
►
clingutils
►
cont
►
dictgen
►
foundation
►
gui
►
imt
►
macosx
►
meta
►
metacling
►
multiproc
►
rint
►
testsupport
▼
thread
►
inc
▼
src
►
RConcurrentHashColl.cxx
►
TCondition.cxx
►
TConditionImp.cxx
TMutex.cxx
►
TMutexImp.cxx
►
TPosixCondition.cxx
►
TPosixMutex.cxx
►
TPosixThread.cxx
►
TPosixThreadFactory.cxx
►
TReentrantRWLock.cxx
►
TReentrantRWLock.hxx
►
TRWLock.cxx
TRWMutexImp.cxx
►
TRWMutexImp.h
TRWSpinLock.cxx
TSemaphore.cxx
►
TThread.cxx
►
TThreadFactory.cxx
►
TThreadImp.cxx
TWin32Condition.cxx
►
TWin32Mutex.cxx
►
TWin32Thread.cxx
►
TWin32ThreadFactory.cxx
►
unix
►
winnt
►
zip
►
documentation
►
geom
►
graf2d
►
graf3d
►
gui
►
hist
►
io
►
main
►
master
►
math
►
montecarlo
►
net
►
proof
►
roofit
►
sql
►
tmva
►
tree
►
tutorials
►
File Members
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
TPosixThreadFactory.cxx
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
// //
14
// TPosixThreadFactory //
15
// //
16
// This is a factory for Posix thread components. //
17
// //
18
//////////////////////////////////////////////////////////////////////////
19
20
#include "
TPosixThreadFactory.h
"
21
#include "
TPosixMutex.h
"
22
#include "
TPosixCondition.h
"
23
#include "
TPosixThread.h
"
24
25
// Force creation of TPosixThreadFactory when shared library will be loaded
26
// (don't explicitly create a TPosixThreadFactory).
27
static
TPosixThreadFactory
gPosixThreadFactoryCreator
;
28
29
ClassImp
(
TPosixThreadFactory
);
30
31
////////////////////////////////////////////////////////////////////////////////
32
/// Create Posix thread factory. Also sets global gThreadFactory to this.
33
34
TPosixThreadFactory::TPosixThreadFactory
(
const
char
*
name
,
const
char
*title) :
35
TThreadFactory
(
name
, title)
36
{
37
gThreadFactory
=
this
;
38
}
39
40
////////////////////////////////////////////////////////////////////////////////
41
/// Return a Posix Mutex.
42
43
TMutexImp
*
TPosixThreadFactory::CreateMutexImp
(
Bool_t
recursive
=
kFALSE
)
44
{
45
return
new
TPosixMutex
(
recursive
);
46
}
47
48
////////////////////////////////////////////////////////////////////////////////
49
/// Return a Posix thread.
50
51
TThreadImp
*
TPosixThreadFactory::CreateThreadImp
()
52
{
53
return
new
TPosixThread
;
54
}
55
56
////////////////////////////////////////////////////////////////////////////////
57
/// Return a Posix condition variable.
58
59
TConditionImp
*
TPosixThreadFactory::CreateConditionImp
(
TMutexImp
*
m
)
60
{
61
return
new
TPosixCondition
(
m
);
62
}
kFALSE
constexpr Bool_t kFALSE
Definition
RtypesCore.h:94
ClassImp
#define ClassImp(name)
Definition
Rtypes.h:374
name
char name[80]
Definition
TGX11.cxx:110
TPosixCondition.h
TPosixMutex.h
gPosixThreadFactoryCreator
static TPosixThreadFactory gPosixThreadFactoryCreator
Definition
TPosixThreadFactory.cxx:27
TPosixThreadFactory.h
TPosixThread.h
gThreadFactory
R__EXTERN TThreadFactory * gThreadFactory
Definition
TThreadFactory.h:45
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
TConditionImp
Definition
TConditionImp.h:26
TMutexImp
Definition
TMutexImp.h:27
TPosixCondition
Definition
TPosixCondition.h:33
TPosixMutex
Definition
TPosixMutex.h:28
TPosixThreadFactory
Definition
TPosixThreadFactory.h:31
TPosixThreadFactory::TPosixThreadFactory
TPosixThreadFactory(const char *name="Posix", const char *title="Posix Thread Factory")
Create Posix thread factory. Also sets global gThreadFactory to this.
Definition
TPosixThreadFactory.cxx:34
TPosixThreadFactory::CreateThreadImp
TThreadImp * CreateThreadImp() override
Return a Posix thread.
Definition
TPosixThreadFactory.cxx:51
TPosixThreadFactory::CreateMutexImp
TMutexImp * CreateMutexImp(Bool_t recursive) override
Return a Posix Mutex.
Definition
TPosixThreadFactory.cxx:43
TPosixThreadFactory::CreateConditionImp
TConditionImp * CreateConditionImp(TMutexImp *m) override
Return a Posix condition variable.
Definition
TPosixThreadFactory.cxx:59
TPosixThread
Definition
TPosixThread.h:33
TThreadFactory
Definition
TThreadFactory.h:32
TThreadImp
Definition
TThreadImp.h:31
bool
m
TMarker m
Definition
textangle.C:8
core
thread
src
TPosixThreadFactory.cxx
ROOT master - Reference Guide Generated on Thu Feb 20 2025 04:19:30 (GVA Time) using Doxygen 1.10.0