xrootd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
XrdCl::ParallelOperation< HasHndl >::Ctx Struct Reference

Public Member Functions

 Ctx (PipelineHandler *handler)
 
 ~Ctx ()
 Destructor. More...
 
void Handle (const XRootDStatus &st)
 

Public Attributes

std::atomic< PipelineHandler * > handler
 PipelineHandler of the ParallelOperation. More...
 

Detailed Description

template<bool HasHndl>
struct XrdCl::ParallelOperation< HasHndl >::Ctx

Helper class for handling the PipelineHandler of the ParallelOperation (RAII).

Guarantees that the handler will be executed exactly once.

Constructor & Destructor Documentation

template<bool HasHndl>
XrdCl::ParallelOperation< HasHndl >::Ctx::Ctx ( PipelineHandler handler)
inline

Constructor.

Parameters
handler: the PipelineHandler of the Parallel operation
template<bool HasHndl>
XrdCl::ParallelOperation< HasHndl >::Ctx::~Ctx ( )
inline

Member Function Documentation

template<bool HasHndl>
void XrdCl::ParallelOperation< HasHndl >::Ctx::Handle ( const XRootDStatus st)
inline

Forwards the status to the PipelineHandler if the handler haven't been called yet.

Parameters
st: status

References XrdCl::ParallelOperation< HasHndl >::Ctx::handler, and XrdCl::PipelineHandler::HandleResponse().

Referenced by XrdCl::ParallelOperation< HasHndl >::Ctx::~Ctx().

Member Data Documentation

template<bool HasHndl>
std::atomic<PipelineHandler*> XrdCl::ParallelOperation< HasHndl >::Ctx::handler

The documentation for this struct was generated from the following file: