ServerTimer Class Reference

Inheritance diagram for ServerTimer:
Inheritance graph
[legend]
Collaboration diagram for ServerTimer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Bool_t Notify ()

Static Public Member Functions

static void StartServerTimer (int period_msec=100)

Static Public Attributes

static ServerTimerfgTimer

Private Member Functions

 ~ServerTimer ()
 ServerTimer ()

Detailed Description

Definition at line 58 of file RootLock.cxx.


Constructor & Destructor Documentation

ServerTimer::~ServerTimer (  )  [inline, private]

Definition at line 100 of file RootLock.cxx.

00101   {
00102     //TurnOff();
00103   }

ServerTimer::ServerTimer (  )  [inline, private]

Definition at line 105 of file RootLock.cxx.

Referenced by StartServerTimer().

00106   {
00107     //int period_msec = 100;
00108     //Start(period_msec,kTRUE);
00109   }

Here is the caller graph for this function:


Member Function Documentation

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   }

Here is the call graph for this function:

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   }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 62 of file RootLock.cxx.

Referenced by StartServerTimer().


The documentation for this class was generated from the following file:

Generated on 12 Feb 2016 for ROOT Analyzer by  doxygen 1.6.1