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

Inheritance diagram for XrdCl::ParallelOperation< HasHndl >::AtLeastPolicy:
Inheritance graph
[legend]
Collaboration diagram for XrdCl::ParallelOperation< HasHndl >::AtLeastPolicy:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AtLeastPolicy (size_t size, size_t threshold)
bool Examine (const XrdCl::XRootDStatus &status)

Private Attributes

std::atomic< size_t > cnt
const size_t threshold

Detailed Description

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

`At Least` policy implementation

At least n (user defined) operations need to succeed in order for the parallel operation to be successful (the user handler will be called only when all operations are resolved).


Constructor & Destructor Documentation

template<bool HasHndl>
XrdCl::ParallelOperation< HasHndl >::AtLeastPolicy::AtLeastPolicy ( size_t  size,
size_t  threshold 
) [inline]

Member Function Documentation

template<bool HasHndl>
bool XrdCl::ParallelOperation< HasHndl >::AtLeastPolicy::Examine ( const XrdCl::XRootDStatus status  )  [inline, virtual]

Member Data Documentation

template<bool HasHndl>
std::atomic<size_t> XrdCl::ParallelOperation< HasHndl >::AtLeastPolicy::cnt [private]
template<bool HasHndl>
const size_t XrdCl::ParallelOperation< HasHndl >::AtLeastPolicy::threshold [private]

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 Jul 2020 for xrootd by  doxygen 1.6.1