kokkos-execution 0.0.1
Loading...
Searching...
No Matches
Kokkos::Execution::Impl::SyncWait::Receiver< Exec, HasErrorPtr, ResultType > Struct Template Reference

Receiver for stdexec::sync_wait. More...

#include <sync_wait.hpp>

Public Types

using receiver_concept = Impl::DeferredCompletionReceiverTag

Public Member Functions

template<typename... Args>
void set_value (Args &&... args) &&noexcept
template<typename Error>
requires HasErrorPtr::value
void set_error (Error &&err) &&noexcept
void set_stopped () &&noexcept
void continues_after () &&noexcept
void continues_after (const Impl::Event< Exec > &event) &&noexcept
constexpr auto get_env () const noexcept -> env

Public Attributes

Impl::State< Exec > const * state
State< HasErrorPtr > * runloop_state
std::optional< ResultType > * result

Static Public Attributes

static constexpr auto label = Impl::dispatch_label<Exec, ": sync_wait">()

Detailed Description

template<Kokkos::ExecutionSpace Exec, typename HasErrorPtr = std::false_type, typename ResultType = std::tuple<>>
struct Kokkos::Execution::Impl::SyncWait::Receiver< Exec, HasErrorPtr, ResultType >

Receiver for stdexec::sync_wait.

Definition at line 46 of file sync_wait.hpp.

Member Typedef Documentation

◆ receiver_concept

template<Kokkos::ExecutionSpace Exec, typename HasErrorPtr = std::false_type, typename ResultType = std::tuple<>>
using Kokkos::Execution::Impl::SyncWait::Receiver< Exec, HasErrorPtr, ResultType >::receiver_concept = Impl::DeferredCompletionReceiverTag

Definition at line 47 of file sync_wait.hpp.

Member Function Documentation

◆ continues_after() [1/2]

template<Kokkos::ExecutionSpace Exec, typename HasErrorPtr = std::false_type, typename ResultType = std::tuple<>>
void Kokkos::Execution::Impl::SyncWait::Receiver< Exec, HasErrorPtr, ResultType >::continues_after ( ) &&
inlinenoexcept

Definition at line 74 of file sync_wait.hpp.

◆ continues_after() [2/2]

template<Kokkos::ExecutionSpace Exec, typename HasErrorPtr = std::false_type, typename ResultType = std::tuple<>>
void Kokkos::Execution::Impl::SyncWait::Receiver< Exec, HasErrorPtr, ResultType >::continues_after ( const Impl::Event< Exec > & event) &&
inlinenoexcept

Definition at line 80 of file sync_wait.hpp.

◆ get_env()

template<Kokkos::ExecutionSpace Exec, typename HasErrorPtr = std::false_type, typename ResultType = std::tuple<>>
auto Kokkos::Execution::Impl::SyncWait::Receiver< Exec, HasErrorPtr, ResultType >::get_env ( ) const->env
inlinenodiscardconstexprnoexcept

Definition at line 87 of file sync_wait.hpp.

◆ set_error()

template<Kokkos::ExecutionSpace Exec, typename HasErrorPtr = std::false_type, typename ResultType = std::tuple<>>
template<typename Error>
requires HasErrorPtr::value
void Kokkos::Execution::Impl::SyncWait::Receiver< Exec, HasErrorPtr, ResultType >::set_error ( Error && err) &&
inlinenoexcept

Definition at line 62 of file sync_wait.hpp.

◆ set_stopped()

template<Kokkos::ExecutionSpace Exec, typename HasErrorPtr = std::false_type, typename ResultType = std::tuple<>>
void Kokkos::Execution::Impl::SyncWait::Receiver< Exec, HasErrorPtr, ResultType >::set_stopped ( ) &&
inlinenoexcept

Definition at line 69 of file sync_wait.hpp.

◆ set_value()

template<Kokkos::ExecutionSpace Exec, typename HasErrorPtr = std::false_type, typename ResultType = std::tuple<>>
template<typename... Args>
void Kokkos::Execution::Impl::SyncWait::Receiver< Exec, HasErrorPtr, ResultType >::set_value ( Args &&... args) &&
inlinenoexcept

Definition at line 56 of file sync_wait.hpp.

Member Data Documentation

◆ label

template<Kokkos::ExecutionSpace Exec, typename HasErrorPtr = std::false_type, typename ResultType = std::tuple<>>
auto Kokkos::Execution::Impl::SyncWait::Receiver< Exec, HasErrorPtr, ResultType >::label = Impl::dispatch_label<Exec, ": sync_wait">()
staticconstexpr

Definition at line 49 of file sync_wait.hpp.

◆ result

template<Kokkos::ExecutionSpace Exec, typename HasErrorPtr = std::false_type, typename ResultType = std::tuple<>>
std::optional<ResultType>* Kokkos::Execution::Impl::SyncWait::Receiver< Exec, HasErrorPtr, ResultType >::result

Definition at line 53 of file sync_wait.hpp.

◆ runloop_state

template<Kokkos::ExecutionSpace Exec, typename HasErrorPtr = std::false_type, typename ResultType = std::tuple<>>
State<HasErrorPtr>* Kokkos::Execution::Impl::SyncWait::Receiver< Exec, HasErrorPtr, ResultType >::runloop_state

Definition at line 52 of file sync_wait.hpp.

◆ state

template<Kokkos::ExecutionSpace Exec, typename HasErrorPtr = std::false_type, typename ResultType = std::tuple<>>
Impl::State<Exec> const* Kokkos::Execution::Impl::SyncWait::Receiver< Exec, HasErrorPtr, ResultType >::state

Definition at line 51 of file sync_wait.hpp.


The documentation for this struct was generated from the following file:
  • /__w/kokkos-execution/kokkos-execution/kokkos-execution/impl/sync_wait.hpp