#include <XrdPosixFileRH.hh>
Public Types | |
enum | ioType { nonIO = 0, isRead = 1, isReadV = 2, isWrite = 3 } |
Public Member Functions | |
void | DoIt () |
void | HandleResponse (XrdCl::XRootDStatus *status, XrdCl::AnyObject *response) |
void | Recycle () |
void | Sched (int result) |
Static Public Member Functions | |
static XrdPosixFileRH * | Alloc (XrdOucCacheIOCB *cbp, XrdPosixFile *fp, long long offs, int xResult, ioType typeIO) |
static void | SetMax (int mval) |
Private Member Functions | |
XrdPosixFileRH () | |
virtual | ~XrdPosixFileRH () |
Private Attributes | |
union { | |
XrdOucCacheIOCB * theCB | |
XrdPosixFileRH * next | |
}; | |
XrdPosixFile * | theFile |
long long | offset |
int | result |
ioType | typeIO |
Static Private Attributes | |
static XrdSysMutex | myMutex |
static XrdPosixFileRH * | freeRH |
static int | numFree |
static int | maxFree |
XrdPosixFileRH::XrdPosixFileRH | ( | ) | [inline, private] |
virtual XrdPosixFileRH::~XrdPosixFileRH | ( | ) | [inline, private, virtual] |
static XrdPosixFileRH* XrdPosixFileRH::Alloc | ( | XrdOucCacheIOCB * | cbp, | |
XrdPosixFile * | fp, | |||
long long | offs, | |||
int | xResult, | |||
ioType | typeIO | |||
) | [static] |
void XrdPosixFileRH::DoIt | ( | ) | [inline, virtual] |
Implements XrdJob.
References XrdOucCacheIOCB::Done(), Recycle(), result, and theCB.
void XrdPosixFileRH::HandleResponse | ( | XrdCl::XRootDStatus * | status, | |
XrdCl::AnyObject * | response | |||
) | [virtual] |
Called when a response to associated request arrives or an error occurs
status | status of the request | |
response | an object associated with the response (request dependent) |
Reimplemented from XrdCl::ResponseHandler.
void XrdPosixFileRH::Recycle | ( | ) |
Referenced by DoIt().
void XrdPosixFileRH::Sched | ( | int | result | ) |
static void XrdPosixFileRH::SetMax | ( | int | mval | ) | [inline, static] |
References maxFree.
union { ... } [private] |
XrdPosixFileRH* XrdPosixFileRH::freeRH [static, private] |
int XrdPosixFileRH::maxFree [static, private] |
Referenced by SetMax().
XrdSysMutex XrdPosixFileRH::myMutex [static, private] |
int XrdPosixFileRH::numFree [static, private] |
long long XrdPosixFileRH::offset [private] |
int XrdPosixFileRH::result [private] |
Referenced by DoIt().
Referenced by DoIt().
XrdPosixFile* XrdPosixFileRH::theFile [private] |
ioType XrdPosixFileRH::typeIO [private] |