XrdCl::ParallelOperation< HasHndl >::Ctx Struct Reference

List of all members.

Public Member Functions

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

Public Attributes

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

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 7 Apr 2019 for xrootd by  doxygen 1.6.1