• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

XrdOlbState.hh

Go to the documentation of this file.
00001 #ifndef __XRDOLBSTATE_H_
00002 #define __XRDOLBSTATE_H_
00003 /******************************************************************************/
00004 /*                                                                            */
00005 /*                        X r d O l b S t a t e . h h                         */
00006 /*                                                                            */
00007 /* (c) 2005 by the Board of Trustees of the Leland Stanford, Jr., University  */
00008 /*                            All Rights Reserved                             */
00009 /*   Produced by Andrew Hanushevsky for Stanford University under contract    */
00010 /*              DE-AC02-76-SFO0515 with the Department of Energy              */
00011 /******************************************************************************/
00012   
00013 //         $Id: XrdOlbState.hh,v 1.3 2007/07/26 15:18:25 ganis Exp $
00014 
00015 #include "XrdSys/XrdSysPthread.hh"
00016 #include "XrdOlb/XrdOlbTypes.hh"
00017 
00018 class XrdOlbState
00019 {
00020 public:
00021 
00022 void  Calc(int how, int nosState, int susState);
00023 
00024 void *Monitor();
00025 
00026 void  Sync(SMask_t mmask, int nosState, int susState);
00027 
00028       XrdOlbState();
00029      ~XrdOlbState() {}
00030 
00031 private:
00032 
00033 XrdSysSemaphore mySemaphore;
00034 XrdSysMutex     myMutex;
00035 
00036 int             numSuspend;
00037 int             numStaging;
00038 int             curState;
00039 int             Changes;
00040 };
00041 
00042 namespace XrdOlb
00043 {
00044 extern    XrdOlbState OlbState;
00045 }
00046 #endif

Generated on Wed Sep 1 2010 for xrootd by  doxygen 1.7.1