xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdFrm
XrdFrmReqBoss.hh
Go to the documentation of this file.
1
#ifndef __FRMREQBOSS_H__
2
#define __FRMREQBOSS_H__
3
/******************************************************************************/
4
/* */
5
/* X r d F r m R e q b o s s . h h */
6
/* */
7
/* (c) 2010 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
13
#include "
XrdFrc/XrdFrcReqFile.hh
"
14
#include "
XrdFrc/XrdFrcRequest.hh
"
15
#include "
XrdSys/XrdSysPthread.hh
"
16
17
class
XrdFrmReqBoss
18
{
19
public
:
20
21
void
Add
(
XrdFrcRequest
&Request);
22
23
void
Del
(
XrdFrcRequest
&Request);
24
25
void
Process
();
26
27
int
Server
();
28
29
int
Start
(
char
*aPath,
int
aMode);
30
31
void
Wakeup
(
int
PushIt=1);
32
33
XrdFrmReqBoss
(
const
char
*Me,
int
qVal)
34
:
rqReady
(0),
Persona
(Me),
theQ
(qVal),
isPosted
(0) {}
35
~XrdFrmReqBoss
() {}
36
37
private
:
38
void
Register
(
XrdFrcRequest
&Req,
int
qNum);
39
40
XrdSysSemaphore
rqReady
;
41
XrdFrcReqFile
*
rQueue
[
XrdFrcRequest::maxPQE
];
42
const
char
*
Persona
;
43
int
theQ
;
44
int
isPosted
;
45
};
46
#endif
Generated by
1.8.1.2