31#ifdef R__LESS_INCLUDES
52 typedef void *(*VoidRtnFunc_t)(
void *);
91 static std::atomic<char *>
volatile fgXAct;
105 void DoError(
Int_t level,
const char *location,
const char *fmt, va_list va)
const override;
106 void ErrorHandler(
int level,
const char *location,
const char *fmt, va_list ap)
const;
125 Int_t Run(
void *arg =
nullptr,
const int affinity = -1);
154 static void **
Tsd(
void *dflt,
Int_t k);
173 static void Printf(
const char *fmt, ...)
175 __attribute__((
format(printf, 1, 2)))
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t format
Double_t(* Function)(Double_t)
The TNamed class is the base class for all named ROOT classes.
virtual void Delete(Option_t *option="")
Delete this object.
~TThreadCleaner()
Call user clean up routines.
Bool_t Notify() override
Periodically execute the TThread::XAction() method in the main thread.
<div class="legacybox"><h2>Legacy Code</h2> TThread is a legacy interface: there will be no bug fixes...
static TThread * GetThread(Long_t id)
Static method to find a thread by id.
static Int_t CleanUpPop(Int_t exe=0)
Static method which pops thread cleanup method off stack.
static Int_t CancelPoint()
Static method to set a cancellation point.
static Int_t Sleep(ULong_t secs, ULong_t nanos=0)
Static method to sleep the calling thread.
static void **volatile fgXArr
static Int_t CleanUpPush(void *free, void *arg=nullptr)
Static method which pushes thread cleanup method on stack.
static Int_t TryLock()
Static method to try to lock the main thread mutex.
void SetPriority(EPriority pri)
Set thread priority.
static Int_t Exists()
Static method to check if threads exist.
static void Ps()
Static method listing the existing threads.
TThread & operator=(const TThread &)=delete
static void ** GetTls(Int_t k)
Static method that initializes the TLS array of a thread and returns the reference to a given positio...
static TThreadImp * fgThreadImp
static Int_t UnLock()
Static method to unlock the main thread mutex.
Int_t Kill()
Kill this thread.
static TMutex * fgMainMutex
static volatile Int_t fgXAnb
Long_t Join(void **ret=nullptr)
Join this thread.
static void XAction()
Static method called via the thread timer to execute in the main thread certain commands.
virtual ~TThread()
Cleanup the thread.
EPriority GetPriority() const
static Int_t SetCancelAsynchronous()
Static method to set the cancellation response type of the calling thread to asynchronous,...
static Int_t CleanUp()
Static method to cleanup the calling thread.
void ErrorHandler(int level, const char *location, const char *fmt, va_list ap) const
Thread specific error handler function.
static Int_t GetTime(ULong_t *absSec, ULong_t *absNanoSec)
Static method to get the current time.
static Long_t SelfId()
Static method returning the id for the current thread.
void Constructor()
Common thread constructor.
static Int_t SetCancelOn()
Static method to turn on thread cancellation.
static void ** Tsd(void *dflt, Int_t k)
Static method returning a pointer to thread specific data container of the calling thread.
Int_t Run(void *arg=nullptr, const int affinity=-1)
Start the thread.
static volatile Int_t fgXArt
void SetComment(const char *txt=nullptr)
void DoError(Int_t level, const char *location, const char *fmt, va_list va) const override
Interface to ErrorHandler.
static Int_t XARequest(const char *xact, Int_t nb, void **ar, Int_t *iret)
Static method used to allow commands to be executed by the main thread.
static std::atomic< char * > volatile fgXAct
static void Printf(const char *fmt,...)
Static method providing a thread safe printf. Appends a newline.
static Int_t Lock()
Static method to lock the main thread mutex.
void(* VoidFunc_t)(void *)
static Int_t SetCancelOff()
Static method to turn off thread cancellation.
static void Init()
Initialize global state and variables once.
static Int_t SetCancelDeferred()
Static method to set the cancellation response type of the calling thread to deferred,...
static void AfterCancel(TThread *th)
Static method which is called after the thread has been canceled.
static TMutex * fgXActMutex
static Bool_t IsInitialized()
Return true, if the TThread objects have been initialize.
static TThread * Self()
Static method returning pointer to current thread.
static Int_t Exit(void *ret=nullptr)
Static method which terminates the execution of the calling thread.
static void Initialize()
Initialize the Thread package.
static TCondition * fgXActCondi
TThread(const TThread &)=delete
void *(* VoidRtnFunc_t)(void *)
void Delete(Option_t *option="") override
Delete this object.
Handles synchronous and a-synchronous timer events.