

Public Member Functions | |
| Bool_t | Notify () |
Static Public Member Functions | |
| static void | StartServerTimer (int period_msec=100) |
Static Public Attributes | |
| static ServerTimer * | fgTimer |
Private Member Functions | |
| ~ServerTimer () | |
| ServerTimer () | |
Definition at line 58 of file RootLock.cxx.
| ServerTimer::~ServerTimer | ( | ) | [inline, private] |
Definition at line 100 of file RootLock.cxx.
| ServerTimer::ServerTimer | ( | ) | [inline, private] |
Definition at line 105 of file RootLock.cxx.
Referenced by StartServerTimer().

| Bool_t ServerTimer::Notify | ( | ) | [inline] |
Definition at line 73 of file RootLock.cxx.
References gDebugLockRoot, gDoneSema(), gRootSema(), and gWaitSema().
00074 { 00075 if (gDebugLockRoot) 00076 fprintf(stderr, "ServerTimer::Notify!!\n"); 00077 00078 int notWaiting = gWaitSema.TryWait(); 00079 if (gDebugLockRoot) 00080 printf("NotWaiting %d!\n", notWaiting); 00081 if (!notWaiting) 00082 { 00083 if (gDebugLockRoot) 00084 printf("Yeld root sema!\n"); 00085 gRootSema.Post(); 00086 TThread::Self()->Sleep(0, 1000000); // sleep in ns 00087 gDoneSema.Wait(); 00088 if (gDebugLockRoot) 00089 printf("Recapture root sema!\n"); 00090 } 00091 00092 Reset(); 00093 return kTRUE; 00094 }

| static void ServerTimer::StartServerTimer | ( | int | period_msec = 100 |
) | [inline, static] |
Definition at line 64 of file RootLock.cxx.
References fgTimer, and ServerTimer().
Referenced by StartLockRootTimer().
00065 { 00066 if (!fgTimer) 00067 { 00068 fgTimer = new ServerTimer(); 00069 fgTimer->Start(period_msec,kTRUE); 00070 } 00071 }


ServerTimer * ServerTimer::fgTimer [static] |
Definition at line 62 of file RootLock.cxx.
Referenced by StartServerTimer().
1.6.1