RootLock.cxx File Reference

#include "RootLock.h"
#include <TSemaphore.h>
#include <TTimer.h>
Include dependency graph for RootLock.cxx:

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

Function Documentation

static TSemaphore gDoneSema (  )  [static]

Referenced by ServerTimer::Notify(), and UnlockRoot().

Here is the caller graph for this function:

static TSemaphore gRootSema (  )  [static]

Referenced by LockRoot(), and ServerTimer::Notify().

Here is the caller graph for this function:

static TSemaphore gWaitSema (  )  [static]

Referenced by LockRoot(), and ServerTimer::Notify().

Here is the caller graph for this function:

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 }

Here is the call graph for this function:

Here is the caller graph for this function:

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 }

Here is the call graph for this function:

Here is the caller graph for this function:

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 }

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

bool gDebugLockRoot = false

Definition at line 21 of file RootLock.cxx.

Referenced by LockRoot(), ServerTimer::Notify(), and UnlockRoot().


Generated on 12 Feb 2016 for ROOT Analyzer by  doxygen 1.6.1