![]() |
Project
|
Helper class which holds commonly used policies. More...
#include <CompletionPolicyHelpers.h>
Static Public Member Functions | |
| static CompletionPolicy | consumeWhenAll (const char *name, CompletionPolicy::Matcher matcher) |
| Default Completion policy. When all the parts of a record have arrived, consume them. | |
| static CompletionPolicy | consumeWhenAll (CompletionPolicy::Matcher matcher=[](auto const &) -> bool { return true;}) |
| Default matcher applies for all devices. | |
| static CompletionPolicy | consumeWhenAllOrdered (const char *name, CompletionPolicy::Matcher matcher) |
| as consumeWhenAll, but ensures that records are processed with incremental timeSlice (DataHeader::startTime) | |
| static CompletionPolicy | consumeWhenAllOrdered (CompletionPolicy::Matcher matcher=[](auto const &) -> bool { return true;}) |
| Default matcher applies for all devices. | |
| static CompletionPolicy | consumeWhenAllOrdered (std::string matchName) |
| static CompletionPolicy | consumeWhenAny (const char *name, CompletionPolicy::Matcher matcher) |
| When any of the parts of the record have been received, consume them. | |
| static CompletionPolicy | consumeWhenAnyZeroCount (const char *name, CompletionPolicy::Matcher matcher) |
| When any of the parts which has arrived has a refcount of 1. | |
| static CompletionPolicy | consumeWhenAny (CompletionPolicy::Matcher matcher=[](auto const &) -> bool { return true;}) |
| Default matcher applies for all devices. | |
| static CompletionPolicy | consumeWhenAny (std::string matchName) |
| static CompletionPolicy | consumeWhenAnyWithAllConditions (const char *name, CompletionPolicy::Matcher matcher) |
| When any of the parts of the record have been received, consume them. | |
| static CompletionPolicy | consumeWhenAnyWithAllConditions (CompletionPolicy::Matcher matcher=[](auto const &) -> bool { return true;}) |
| Default matcher applies for all devices. | |
| static CompletionPolicy | consumeWhenAnyWithAllConditions (std::string matchName) |
| static CompletionPolicy | consumeExistingWhenAny (const char *name, CompletionPolicy::Matcher matcher) |
| static CompletionPolicy | processWhenAny (const char *name, CompletionPolicy::Matcher matcher) |
| static CompletionPolicy | processWhenAny (CompletionPolicy::Matcher matcher=[](auto const &) -> bool { return true;}) |
| Default matcher applies for all devices. | |
. | |
Attach a given op to a device matching | |
| static CompletionPolicy | defineByName (std::string const &name, CompletionPolicy::CompletionOp op) |
, check message of origin @origin is available | |
Attach a given op to a device matching | |
| static CompletionPolicy | defineByNameOrigin (std::string const &name, std::string const &origin, CompletionPolicy::CompletionOp op) |
| template<typename T , typename U > | |
| static auto | getHeader (U const &input) |
| Get a specific header from the input. | |
Helper class which holds commonly used policies.
Definition at line 26 of file CompletionPolicyHelpers.h.
|
static |
When any of the parts of the record have been received, process the existing and free the associated payloads. This allows freeing things as early as possible, while still being able to wait all the parts before disposing the timeslice completely
Definition at line 207 of file CompletionPolicyHelpers.cxx.
|
inlinestatic |
Default matcher applies for all devices.
Definition at line 30 of file CompletionPolicyHelpers.h.
|
static |
Default Completion policy. When all the parts of a record have arrived, consume them.
Definition at line 111 of file CompletionPolicyHelpers.cxx.
|
inlinestatic |
Default matcher applies for all devices.
Definition at line 38 of file CompletionPolicyHelpers.h.
|
static |
as consumeWhenAll, but ensures that records are processed with incremental timeSlice (DataHeader::startTime)
Definition at line 175 of file CompletionPolicyHelpers.cxx.
|
static |
Definition at line 199 of file CompletionPolicyHelpers.cxx.
|
inlinestatic |
Default matcher applies for all devices.
Definition at line 51 of file CompletionPolicyHelpers.h.
|
static |
When any of the parts of the record have been received, consume them.
Definition at line 266 of file CompletionPolicyHelpers.cxx.
|
static |
Definition at line 279 of file CompletionPolicyHelpers.cxx.
|
inlinestatic |
Default matcher applies for all devices.
Definition at line 60 of file CompletionPolicyHelpers.h.
|
static |
When any of the parts of the record have been received, consume them.
Definition at line 287 of file CompletionPolicyHelpers.cxx.
|
static |
Definition at line 348 of file CompletionPolicyHelpers.cxx.
|
static |
When any of the parts which has arrived has a refcount of 1.
Definition at line 253 of file CompletionPolicyHelpers.cxx.
|
static |
Definition at line 77 of file CompletionPolicyHelpers.cxx.
|
static |
Definition at line 32 of file CompletionPolicyHelpers.cxx.
|
inlinestatic |
Get a specific header from the input.
Definition at line 85 of file CompletionPolicyHelpers.h.
|
inlinestatic |
Default matcher applies for all devices.
Definition at line 75 of file CompletionPolicyHelpers.h.
|
static |
When any of the parts of the record have been received, process them, without actually consuming them.
Definition at line 356 of file CompletionPolicyHelpers.cxx.