XrdXrootdFileLock.hh

Go to the documentation of this file.
00001 #ifndef _XROOTD_FILELOCK_H_
00002 #define _XROOTD_FILELOCK_H_
00003 /******************************************************************************/
00004 /*                                                                            */
00005 /*                  X r d X r o o t d F i l e L o c k . h h                   */
00006 /*                                                                            */
00007 /* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University  */
00008 /*       All Rights Reserved. See XrdInfo.cc for complete License Terms       */
00009 /*   Produced by Andrew Hanushevsky for Stanford University under contract    */
00010 /*              DE-AC03-76-SFO0515 with the Department of Energy              */
00011 /******************************************************************************/
00012 
00013 //      $Id: XrdXrootdFileLock.hh 22437 2008-03-04 14:35:16Z rdm $
00014  
00015 #include "XrdXrootd/XrdXrootdFile.hh"
00016   
00017 class XrdXrootdFileLock
00018 {
00019 public:
00020 
00021 virtual int   Lock(XrdXrootdFile *fp, int force=0) = 0;
00022 
00023 virtual void  numLocks(XrdXrootdFile *fp, int &rcnt, int &wcnt) = 0;
00024 
00025 virtual int Unlock(XrdXrootdFile *fp) = 0;
00026 
00027             XrdXrootdFileLock() {}
00028 virtual    ~XrdXrootdFileLock() {}
00029 };
00030 #endif

Generated on Tue Jul 5 14:47:04 2011 for ROOT_528-00b_version by  doxygen 1.5.1