#include "RootLock.h"#include <TSemaphore.h>#include <TTimer.h>
Go to the source code of this file.
Classes | |
| class | ServerTimer |
Functions | |
| static TSemaphore | gRootSema (0) |
| static TSemaphore | gWaitSema (0) |
| static TSemaphore | gDoneSema (0) |
| void | LockRoot () |
| void | UnlockRoot () |
| void | StartLockRootTimer (int period_msec) |
Variables | |
| bool | gDebugLockRoot = false |
| static TSemaphore gDoneSema | ( | 0 | ) | [static] |
| static TSemaphore gRootSema | ( | 0 | ) | [static] |
| static TSemaphore gWaitSema | ( | 0 | ) | [static] |
| 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 | ) |
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 = false |
Definition at line 21 of file RootLock.cxx.
Referenced by LockRoot(), ServerTimer::Notify(), and UnlockRoot().
1.6.1