15template <
typename SIZE_TYPE>
19template <
typename SIZE_TYPE>
27template <
typename SIZE_TYPE>
31 assert(m_event->is_ready());
36template <
typename SIZE_TYPE>
42template <
typename SIZE_TYPE>
45 return m_event->is_ready();
48template <
typename SIZE_TYPE>
An allocator class that wraps a memory resource.
Definition allocator.hpp:37
const_reference unsafe_get() const
Access the async/future value without waiting for completion Completion must be ensured by the user.
Definition async_size.ipp:28
void ignore() override
Function telling the object not to wait for the underlying event.
Definition async_size.ipp:49
std::unique_ptr< abstract_event > event_type
Type of the held event.
Definition async_size.hpp:36
unique_alloc_ptr< size_type > storage_type
Underlying type that stores the size variable on the heap.
Definition async_size.hpp:31
bool is_ready() const override
Function checking whether the event is complete without blocking.
Definition async_size.ipp:43
const_reference get() const
Access the async/future value.
Definition async_size.ipp:20
void wait() override
Function that would block the current thread until the event is complete.
Definition async_size.ipp:37
async_size(storage_type size, event_type event)
Constructor taking ownership of a size and event.
Definition async_size.ipp:16
std::add_lvalue_reference_t< std::add_const_t< size_type > > const_reference
Constant (lvalue) reference to the stored size.
Definition async_size.hpp:34
Main namespace for the vecmem classes/functions.
Definition atomic_ref.hpp:16