ROOT
6.08/07
Reference Guide
core
base
inc
TThreadSlots.h
Go to the documentation of this file.
1
// @(#)root/base:$Id$
2
// Author: Philippe Canal 09/30/2011
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_TThreadSlots
13
#define ROOT_TThreadSlots
14
15
#ifndef ROOT_Rtypes
16
#include "
Rtypes.h
"
17
#endif
18
19
namespace
ROOT
{
20
21
enum
EThreadSlotReservation
{
22
// Describe the system wide slot pre-allocation in the TThread
23
// 'special data' storage array ; meant to be used as thread local
24
// storage. (See TThread::Tsd)
25
//
26
// Slot 0 through 19 can be used for user application
27
// Slot 20 and above are reserved for the global system
28
kMaxUserThreadSlot
= 20,
29
30
// Slot reserved by ROOT's packages.
31
kPadThreadSlot
= 20,
32
kClassThreadSlot
= 21,
33
kDirectoryThreadSlot
= 22,
34
kFileThreadSlot
= 23,
35
kPerfStatsThreadSlot
= 24,
36
37
kMaxThreadSlot
= 25
// Size of the array of thread local slots in TThread
38
};
39
}
40
41
#ifndef __CINT__
42
R__EXTERN
void
**(*gThreadTsd)(
void
*,
Int_t
);
43
#endif
44
45
#endif // ROOT_TThreadSlots
ROOT
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
Definition:
StringConv.hxx:21
Rtypes.h
ROOT::EThreadSlotReservation
EThreadSlotReservation
Definition:
TThreadSlots.h:21
Int_t
int Int_t
Definition:
RtypesCore.h:41
ROOT::kPadThreadSlot
Definition:
TThreadSlots.h:31
ROOT::kMaxUserThreadSlot
Definition:
TThreadSlots.h:28
ROOT::kClassThreadSlot
Definition:
TThreadSlots.h:32
ROOT::kFileThreadSlot
Definition:
TThreadSlots.h:34
ROOT::kDirectoryThreadSlot
Definition:
TThreadSlots.h:33
R__EXTERN
#define R__EXTERN
Definition:
DllImport.h:27
ROOT::kPerfStatsThreadSlot
Definition:
TThreadSlots.h:35
ROOT::kMaxThreadSlot
Definition:
TThreadSlots.h:37