ROOT logo
// @(#)root/base:$Id$
// Author: Philippe Canal   09/30/2011

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TThreadSlots
#define ROOT_TThreadSlots

namespace ROOT {
   
   enum EThreadSlotReservation {
      // Describe the system wide slot pre-allocation in the TThread 
      // 'special data' storage array ; meant to be used as thread local
      // storage.  (See TThread::Tsd)
      // 
      // Slot 0 through 19 can be used for user application
      // Slot 20 and above are reserved for the global system
      kMaxUserThreadSlot   = 20,
      
      // Slot reserved by ROOT's packages.
      kPadThreadSlot       = 20,
      kClassThreadSlot     = 21,
      kDirectoryThreadSlot = 22,
      kFileThreadSlot      = 23,
      kPerfStatsThreadSlot = 24,
      
      kMaxThreadSlot       = 25  // Size of the array of thread local slots in TThread
   };
}

#ifndef __CINT__
R__EXTERN void **(*gThreadTsd)(void*,Int_t);
#endif

#endif // ROOT_TThreadSlots
 TThreadSlots.h:1
 TThreadSlots.h:2
 TThreadSlots.h:3
 TThreadSlots.h:4
 TThreadSlots.h:5
 TThreadSlots.h:6
 TThreadSlots.h:7
 TThreadSlots.h:8
 TThreadSlots.h:9
 TThreadSlots.h:10
 TThreadSlots.h:11
 TThreadSlots.h:12
 TThreadSlots.h:13
 TThreadSlots.h:14
 TThreadSlots.h:15
 TThreadSlots.h:16
 TThreadSlots.h:17
 TThreadSlots.h:18
 TThreadSlots.h:19
 TThreadSlots.h:20
 TThreadSlots.h:21
 TThreadSlots.h:22
 TThreadSlots.h:23
 TThreadSlots.h:24
 TThreadSlots.h:25
 TThreadSlots.h:26
 TThreadSlots.h:27
 TThreadSlots.h:28
 TThreadSlots.h:29
 TThreadSlots.h:30
 TThreadSlots.h:31
 TThreadSlots.h:32
 TThreadSlots.h:33
 TThreadSlots.h:34
 TThreadSlots.h:35
 TThreadSlots.h:36
 TThreadSlots.h:37
 TThreadSlots.h:38
 TThreadSlots.h:39
 TThreadSlots.h:40
 TThreadSlots.h:41