xrootd
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
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]

Public Member Functions

 AtLeastPolicy (size_t size, size_t threshold)
 
bool Examine (const XrdCl::XRootDStatus &status)
 
XRootDStatus Result ()
 
- Public Member Functions inherited from XrdCl::PolicyExecutor
virtual ~PolicyExecutor ()
 

Private Attributes

std::atomic< size_t > pending_cnt
 
std::atomic< size_t > failed_cnt
 
const size_t failed_threshold
 
XRootDStatus res
 

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

◆ AtLeastPolicy()

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

Member Function Documentation

◆ Examine()

template<bool HasHndl>
bool XrdCl::ParallelOperation< HasHndl >::AtLeastPolicy::Examine ( const XrdCl::XRootDStatus status)
inlinevirtual

◆ Result()

template<bool HasHndl>
XRootDStatus XrdCl::ParallelOperation< HasHndl >::AtLeastPolicy::Result ( )
inlinevirtual

Member Data Documentation

◆ failed_cnt

template<bool HasHndl>
std::atomic<size_t> XrdCl::ParallelOperation< HasHndl >::AtLeastPolicy::failed_cnt
private

◆ failed_threshold

template<bool HasHndl>
const size_t XrdCl::ParallelOperation< HasHndl >::AtLeastPolicy::failed_threshold
private

◆ pending_cnt

template<bool HasHndl>
std::atomic<size_t> XrdCl::ParallelOperation< HasHndl >::AtLeastPolicy::pending_cnt
private

◆ res

template<bool HasHndl>
XRootDStatus XrdCl::ParallelOperation< HasHndl >::AtLeastPolicy::res
private

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