xrootd
XrdXrootdFileLock.hh
Go to the documentation of this file.
1 #ifndef _XROOTD_FILELOCK_H_
2 #define _XROOTD_FILELOCK_H_
3 /******************************************************************************/
4 /* */
5 /* X r d X r o o t d F i l e L o c k . h h */
6 /* */
7 /* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University */
8 /* All Rights Reserved. See XrdInfo.cc for complete License Terms */
9 /* Produced by Andrew Hanushevsky for Stanford University under contract */
10 /* DE-AC03-76-SFO0515 with the Department of Energy */
11 /******************************************************************************/
12 
13 // $Id$
14 
16 
18 {
19 public:
20 
21 virtual int Lock(XrdXrootdFile *fp, int force=0) = 0;
22 
23 virtual void numLocks(XrdXrootdFile *fp, int &rcnt, int &wcnt) = 0;
24 
25 virtual int Unlock(XrdXrootdFile *fp) = 0;
26 
28 virtual ~XrdXrootdFileLock() {}
29 };
30 #endif