alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::test::cpu::detail::EventHostManualTriggerCpuImpl< TDev > Class Template Reference

Event that can be enqueued into a queue and can be triggered by the Host. More...

#include <EventHostManualTrigger.hpp>

Public Member Functions

 EventHostManualTriggerCpuImpl (EventHostManualTriggerCpuImpl const &other)=delete
 
ALPAKA_FN_HOST EventHostManualTriggerCpuImpl (TDev dev) noexcept
 Constructor. More...
 
auto operator= (EventHostManualTriggerCpuImpl const &) -> EventHostManualTriggerCpuImpl &=delete
 
void trigger ()
 

Public Attributes

bool m_bIsReady
 If the event is not waiting within a queue (not enqueued or already completed). More...
 
std::condition_variable m_conditionVariable
 The condition signaling the event completion. More...
 
TDev const m_dev
 The device this event is bound to. More...
 
std::size_t m_enqueueCount
 The number of times this event has been enqueued. More...
 
std::mutex m_mutex
 The mutex used to synchronize access to the event. More...
 

Detailed Description

template<class TDev = DevCpu>
class alpaka::test::cpu::detail::EventHostManualTriggerCpuImpl< TDev >

Event that can be enqueued into a queue and can be triggered by the Host.

Definition at line 39 of file EventHostManualTrigger.hpp.

Constructor & Destructor Documentation

◆ EventHostManualTriggerCpuImpl() [1/2]

template<class TDev = DevCpu>
ALPAKA_FN_HOST alpaka::test::cpu::detail::EventHostManualTriggerCpuImpl< TDev >::EventHostManualTriggerCpuImpl ( TDev  dev)
inlinenoexcept

Constructor.

Definition at line 43 of file EventHostManualTrigger.hpp.

◆ EventHostManualTriggerCpuImpl() [2/2]

template<class TDev = DevCpu>
alpaka::test::cpu::detail::EventHostManualTriggerCpuImpl< TDev >::EventHostManualTriggerCpuImpl ( EventHostManualTriggerCpuImpl< TDev > const &  other)
delete

Member Function Documentation

◆ operator=()

template<class TDev = DevCpu>
auto alpaka::test::cpu::detail::EventHostManualTriggerCpuImpl< TDev >::operator= ( EventHostManualTriggerCpuImpl< TDev > const &  ) -> EventHostManualTriggerCpuImpl &=delete
delete

◆ trigger()

template<class TDev = DevCpu>
void alpaka::test::cpu::detail::EventHostManualTriggerCpuImpl< TDev >::trigger ( )
inline

Definition at line 54 of file EventHostManualTrigger.hpp.

Member Data Documentation

◆ m_bIsReady

template<class TDev = DevCpu>
bool alpaka::test::cpu::detail::EventHostManualTriggerCpuImpl< TDev >::m_bIsReady

If the event is not waiting within a queue (not enqueued or already completed).

Definition at line 73 of file EventHostManualTrigger.hpp.

◆ m_conditionVariable

template<class TDev = DevCpu>
std::condition_variable alpaka::test::cpu::detail::EventHostManualTriggerCpuImpl< TDev >::m_conditionVariable
mutable

The condition signaling the event completion.

Definition at line 70 of file EventHostManualTrigger.hpp.

◆ m_dev

template<class TDev = DevCpu>
TDev const alpaka::test::cpu::detail::EventHostManualTriggerCpuImpl< TDev >::m_dev

The device this event is bound to.

Definition at line 66 of file EventHostManualTrigger.hpp.

◆ m_enqueueCount

template<class TDev = DevCpu>
std::size_t alpaka::test::cpu::detail::EventHostManualTriggerCpuImpl< TDev >::m_enqueueCount

The number of times this event has been enqueued.

Definition at line 71 of file EventHostManualTrigger.hpp.

◆ m_mutex

template<class TDev = DevCpu>
std::mutex alpaka::test::cpu::detail::EventHostManualTriggerCpuImpl< TDev >::m_mutex
mutable

The mutex used to synchronize access to the event.

Definition at line 68 of file EventHostManualTrigger.hpp.


The documentation for this class was generated from the following file: