Go to the source code of this file.
Classes | |
struct | LockRootGuard |
Functions | |
void | LockRoot () |
void | UnlockRoot () |
void | StartLockRootTimer (int period_msec=100) |
Variables | |
bool | gDebugLockRoot |
void LockRoot | ( | ) |
Definition at line 23 of file RootLock.cxx.
References gDebugLockRoot, gRootSema(), and gWaitSema().
Referenced by LockRootGuard::LockRootGuard().
00024 { 00025 if (gDebugLockRoot) 00026 printf("Try Lock ROOT!\n"); 00027 gWaitSema.Post(); 00028 gRootSema.Wait(); 00029 if (gDebugLockRoot) 00030 printf("Lock ROOT!\n"); 00031 }
void StartLockRootTimer | ( | int | period_msec = 100 |
) |
Definition at line 114 of file RootLock.cxx.
References ServerTimer::StartServerTimer().
Referenced by StartMidasServer(), and StartNetDirectoryServer().
00115 { 00116 ServerTimer::StartServerTimer(period_msec); 00117 }
void UnlockRoot | ( | ) |
Definition at line 33 of file RootLock.cxx.
References gDebugLockRoot, and gDoneSema().
Referenced by LockRootGuard::Unlock().
00034 { 00035 if (gDebugLockRoot) 00036 printf("Unlock ROOT!\n"); 00037 gDoneSema.Post(); 00038 }
bool gDebugLockRoot |
Definition at line 21 of file RootLock.cxx.
Referenced by LockRoot(), ServerTimer::Notify(), and UnlockRoot().