![]() |
XRootD
|
A helper running a fixed number of requests at a given time. More...
#include <XrdClRequestSync.hh>
Public Member Functions | |
RequestSync (uint32_t reqTotal, uint32_t reqQuota) | |
~RequestSync () | |
Destructor. More... | |
uint32_t | FailureCount () const |
Number of tasks finishing with an error. More... | |
void | TaskDone (bool success=true) |
Report the request finish. More... | |
void | WaitForAll () |
Wait for all the requests to be finished. More... | |
void | WaitForQuota () |
Wait for the request quota. More... | |
A helper running a fixed number of requests at a given time.
Definition at line 35 of file XrdClRequestSync.hh.
|
inline |
Constructor
reqTotal | total number of requests |
reqQuota | number of requests to be run in parallel |
Definition at line 44 of file XrdClRequestSync.hh.
References XrdSysSemaphore::Post().
|
inline |
Destructor.
Definition at line 57 of file XrdClRequestSync.hh.
|
inline |
Number of tasks finishing with an error.
Definition at line 96 of file XrdClRequestSync.hh.
Referenced by XrdCl::FileSystem::DirList().
|
inline |
Report the request finish.
Definition at line 82 of file XrdClRequestSync.hh.
References XrdSysSemaphore::Post().
Referenced by XrdCl::FileSystem::DirList().
|
inline |
Wait for all the requests to be finished.
Definition at line 74 of file XrdClRequestSync.hh.
References XrdSysSemaphore::Wait().
Referenced by XrdCl::FileSystem::DirList().
|
inline |
Wait for the request quota.
Definition at line 66 of file XrdClRequestSync.hh.
References XrdSysSemaphore::Wait().
Referenced by XrdCl::FileSystem::DirList().