ROOT
master
Reference Guide
Loading...
Searching...
No Matches
TWin32ThreadFactory.cxx
Go to the documentation of this file.
1
// @(#)root/thread:$Id$
2
// Author: Bertrand Bellenot 20/10/2004
3
4
/*************************************************************************
5
* Copyright (C) 1995-2004, 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
// TWin32ThreadFactory //
15
// //
16
// This is a factory for Win32 thread components. //
17
// //
18
//////////////////////////////////////////////////////////////////////////
19
20
#include "
TWin32ThreadFactory.h
"
21
#include "
TWin32Mutex.h
"
22
#include "
TWin32Condition.h
"
23
#include "
TWin32Thread.h
"
24
25
// Force creation of TWin32ThreadFactory when shared library will be loaded
26
// (don't explicitly create a TWin32ThreadFactory).
27
static
TWin32ThreadFactory
gWin32ThreadFactoryCreator
;
28
29
30
////////////////////////////////////////////////////////////////////////////////
31
/// Create Win32 thread factory. Also sets global gThreadFactory to this.
32
33
TWin32ThreadFactory::TWin32ThreadFactory
(
const
char
*
name
,
const
char
*title) :
34
TThreadFactory
(
name
, title)
35
{
36
gThreadFactory
=
this
;
37
}
38
39
////////////////////////////////////////////////////////////////////////////////
40
/// Return a Win32 Mutex.
41
42
TMutexImp
*
TWin32ThreadFactory::CreateMutexImp
(
Bool_t
recursive
)
43
{
44
return
new
TWin32Mutex
(
recursive
);
45
}
46
47
////////////////////////////////////////////////////////////////////////////////
48
/// Return a Win32 thread.
49
50
TThreadImp
*
TWin32ThreadFactory::CreateThreadImp
()
51
{
52
return
new
TWin32Thread
;
53
}
54
55
////////////////////////////////////////////////////////////////////////////////
56
/// Return a Win32 condition variable.
57
58
TConditionImp
*
TWin32ThreadFactory::CreateConditionImp
(
TMutexImp
*
m
)
59
{
60
return
new
TWin32Condition
(
m
);
61
}
name
char name[80]
Definition
TGX11.cxx:110
gThreadFactory
R__EXTERN TThreadFactory * gThreadFactory
Definition
TThreadFactory.h:45
TWin32Condition.h
TWin32Mutex.h
gWin32ThreadFactoryCreator
static TWin32ThreadFactory gWin32ThreadFactoryCreator
Definition
TWin32ThreadFactory.cxx:27
TWin32ThreadFactory.h
TWin32Thread.h
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
TConditionImp
Definition
TConditionImp.h:26
TMutexImp
Definition
TMutexImp.h:27
TThreadFactory
Definition
TThreadFactory.h:32
TThreadImp
Definition
TThreadImp.h:31
TWin32Condition
Definition
TWin32Condition.h:55
TWin32Mutex
Definition
TWin32Mutex.h:28
TWin32ThreadFactory
Definition
TWin32ThreadFactory.h:31
TWin32ThreadFactory::TWin32ThreadFactory
TWin32ThreadFactory(const char *name="Win32", const char *title="Win32 Thread Factory")
Create Win32 thread factory. Also sets global gThreadFactory to this.
Definition
TWin32ThreadFactory.cxx:33
TWin32ThreadFactory::CreateMutexImp
TMutexImp * CreateMutexImp(Bool_t recursive) override
Return a Win32 Mutex.
Definition
TWin32ThreadFactory.cxx:42
TWin32ThreadFactory::CreateThreadImp
TThreadImp * CreateThreadImp() override
Return a Win32 thread.
Definition
TWin32ThreadFactory.cxx:50
TWin32ThreadFactory::CreateConditionImp
TConditionImp * CreateConditionImp(TMutexImp *m) override
Return a Win32 condition variable.
Definition
TWin32ThreadFactory.cxx:58
TWin32Thread
Definition
TWin32Thread.h:30
bool
m
TMarker m
Definition
textangle.C:8
core
thread
src
TWin32ThreadFactory.cxx
ROOT master - Reference Guide Generated on Thu Sep 25 2025 15:04:44 (GVA Time) using Doxygen 1.10.0