class async_event
Declaration
class async_event { /* full declaration omitted */ };
Description
Type-erased event signalling completion of events at the executor layer. These may wrap SYCL events, asynchronous MPI requests, or similar.
Member Variables
- std::unique_ptr<async_event_impl> m_impl
Member Function Overview
- async_event()
- async_event(std::unique_ptr<async_event_impl> impl) noexcept
- get_native_execution_time() const → std::optional<std::chrono::nanoseconds>
- get_result() const → void *
- is_complete() const → bool
Member Functions
¶async_event()
async_event()
¶async_event(std::unique_ptr<async_event_impl>
impl) noexcept
async_event(std::unique_ptr<async_event_impl>
impl) noexcept
Parameters
- std::unique_ptr<async_event_impl> impl
¶std::optional<std::chrono::nanoseconds>
get_native_execution_time() const
std::optional<std::chrono::nanoseconds>
get_native_execution_time() const
¶void* get_result() const
void* get_result() const
¶bool is_complete() const
bool is_complete() const
Description
Polls the underlying event operation to check if it has completed. This function is cheap to call repeatedly.