21void *handle(
void *ptr)
 
   25   for (
int i = 0; i < 10; i++) {
 
   41   printf(
"Starting Thread 1\n");
 
   44   printf(
"Starting Thread 2\n");
 
   47   printf(
"Starting Thread 3\n");
 
R__EXTERN TSystem * gSystem
 
virtual void Sleep(UInt_t milliSec)
Sleep milliSec milli seconds.
 
<div class="legacybox"><h2>Legacy Code</h2> TThread is a legacy interface: there will be no bug fixes...
 
static void Ps()
Static method listing the existing threads.
 
Long_t Join(void **ret=nullptr)
Join this thread.
 
Int_t Run(void *arg=nullptr, const int affinity=-1)
Start the thread.
 
static void Printf(const char *fmt,...)
Static method providing a thread safe printf. Appends a newline.