xrootd
XrdOucSxeq.hh
Go to the documentation of this file.
1 #ifndef __OUC_SXEQ_HH__
2 #define __OUC_SXEQ_HH__
3 /******************************************************************************/
4 /* */
5 /* X r d O u c S x e q . h h */
6 /* */
7 /* (c) 2009 by the Board of Trustees of the Leland Stanford, Jr., University */
8 /* All Rights Reserved */
9 /* Produced by Andrew Hanushevsky for Stanford University under contract */
10 /* DE-AC02-76-SFO0515 with the Department of Energy */
11 /******************************************************************************/
12 
14 {
15 public:
16 
17 static const int noWait = 0x0001;
18 static const int Share = 0x0002;
19 static const int Unlink = 0x0004;
20 static const int Lock = 0x0008; // lock in constructor
21 
22 int Detach() {int lFD = lokFD; lokFD = -1; return lFD;}
23 
24 int Release();
25 
26 static
27 int Release(int fileD);
28 
29 int Serialize(int Opts=0);
30 
31 static
32 int Serialize(int fileD, int Opts);
33 
34 int lastError() {return lokRC;}
35 
36  XrdOucSxeq(int sOpts, const char *path);
37  XrdOucSxeq(const char *sfx, const char *sfx1=0, const char *Dir="/tmp/");
38  ~XrdOucSxeq();
39 
40 private:
41 
42 char *lokFN;
43 int lokFD;
44 int lokUL;
45 int lokRC;
46 };
47 #endif