Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TThreadSlots.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/base:$Id$
0002 // Author: Philippe Canal   09/30/2011
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TThreadSlots
0013 #define ROOT_TThreadSlots
0014 
0015 #include "RtypesCore.h"
0016 
0017 namespace ROOT {
0018 
0019    enum EThreadSlotReservation {
0020       // Describe the system wide slot pre-allocation in the TThread
0021       // 'special data' storage array ; meant to be used as thread local
0022       // storage.  (See TThread::Tsd)
0023       //
0024       // Slot 0 through 19 can be used for user application
0025       // Slot 20 and above are reserved for the global system
0026       kMaxUserThreadSlot   = 20,
0027 
0028       // Slot reserved by ROOT's packages.
0029       kPadThreadSlot       = 20,
0030       kClassThreadSlot     = 21,
0031       /* This no longer used.
0032          kDirectoryThreadSlot = 22,
0033       */
0034       kFileThreadSlot      = 23,
0035       kPerfStatsThreadSlot = 24,
0036 
0037       kMaxThreadSlot       = 25  // Size of the array of thread local slots in TThread
0038    };
0039 }
0040 
0041 R__EXTERN void **(*gThreadTsd)(void*,Int_t);
0042 
0043 #endif // ROOT_TThreadSlots