10#include <rdma/fi_eq.h>
39 ::fi_cq_attr
raw() const noexcept;
65 ::fid_cq*
raw() noexcept;
70 ::fid_cq const*
raw() const noexcept;
static std::shared_ptr< CompletionQueue > open(std::shared_ptr< Domain > domain, Attributes const &attr=Attributes::defaults())
Create a new completion queue in the specified domain.
::fid_cq * raw() noexcept
Mutable accessor of the underlying fi_cq instance.
CompletionQueue(CompletionQueue const &)=delete
void close()
Releases all underlying resources. This is called from the destructor and the move-assignment operato...
static bool isWaitObjectSupportedForEFA() noexcept
Check if wait any wait object type supported by the EFA provider for this libfabric version.
std::shared_ptr< Domain > _domain
std::optional< Completion > readBlocking(std::chrono::steady_clock::duration timeout)
Perform a blocking read on the completion queue.
std::optional< Completion > handleReadResult(ssize_t ret, ::fi_cq_data_entry const &entry)
Handle the result of a blocking or non-blocking read.
std::optional< Completion > read()
Perform a non-blocking read on the completion queue.
Type to represent a completion entry from a CompletionQueue.
RAII Wrapper around a libfabric domain (fi_domain).
A collection of attributes that can be used to configure the operation of newly created completion qu...
static constexpr std::size_t DEFAULT_SIZE
The completion-queue depth used when no explicit depth is requested.
enum fi_wait_obj waitObject
::fi_cq_attr raw() const noexcept
Returns the raw libfabric version of this object.
static Attributes defaults()
Returns the a CompletionQueueAttr with all of its attributes set to reasonable defaults.