14 #include <TSemaphore.h>
27 printf(
"Try Lock ROOT!\n");
31 printf(
"Lock ROOT!\n");
37 printf(
"Unlock ROOT!\n");
70 fgTimer->Start(period_msec,kTRUE);
77 fprintf(stderr,
"ServerTimer::Notify!!\n");
81 printf(
"NotWaiting %d!\n", notWaiting);
85 printf(
"Yeld root sema!\n");
87 TThread::Self()->Sleep(0, 1000000);
90 printf(
"Recapture root sema!\n");
static TSemaphore gRootSema(0)
static TSemaphore gWaitSema(0)
void StartLockRootTimer(int period_msec)
static TSemaphore gDoneSema(0)
static ServerTimer * fgTimer
static void StartServerTimer(int period_msec=100)