![]() |
alpaka
Abstraction Library for Parallel Kernel Acceleration
|
The CPU device event implementation. More...
#include <EventGenericThreads.hpp>
Inheritance diagram for alpaka::generic::detail::EventGenericThreadsImpl< TDev >:Public Member Functions | |
| EventGenericThreadsImpl (EventGenericThreadsImpl< TDev > const &)=delete | |
| EventGenericThreadsImpl (TDev dev) noexcept | |
| auto | isReady () noexcept -> bool |
| auto | operator= (EventGenericThreadsImpl< TDev > const &) -> EventGenericThreadsImpl< TDev > &=delete |
| auto | wait (std::size_t const &enqueueCount, std::unique_lock< std::mutex > &lk) const noexcept -> void |
Public Attributes | |
| TDev const | m_dev |
| The device this event is bound to. | |
| std::size_t | m_enqueueCount = 0u |
| The number of times this event has been enqueued. | |
| std::shared_future< void > | m_future |
| The future signaling the event completion. | |
| std::size_t | m_LastReadyEnqueueCount = 0u |
| The time this event has been ready the last time. Ready means that the event was not waiting within a queue (not enqueued or already completed). If m_enqueueCount == m_LastReadyEnqueueCount, the event is currently not enqueued. | |
| std::mutex | m_mutex |
| The mutex used to synchronize access to the event. | |
The CPU device event implementation.
Definition at line 29 of file EventGenericThreads.hpp.
|
inlinenoexcept |
Definition at line 33 of file EventGenericThreads.hpp.
|
delete |
|
inlinenoexcept |
Definition at line 40 of file EventGenericThreads.hpp.
|
delete |
|
inlinenoexcept |
Definition at line 45 of file EventGenericThreads.hpp.
| TDev const alpaka::generic::detail::EventGenericThreadsImpl< TDev >::m_dev |
The device this event is bound to.
Definition at line 58 of file EventGenericThreads.hpp.
| std::size_t alpaka::generic::detail::EventGenericThreadsImpl< TDev >::m_enqueueCount = 0u |
The number of times this event has been enqueued.
Definition at line 62 of file EventGenericThreads.hpp.
| std::shared_future<void> alpaka::generic::detail::EventGenericThreadsImpl< TDev >::m_future |
The future signaling the event completion.
Definition at line 61 of file EventGenericThreads.hpp.
| std::size_t alpaka::generic::detail::EventGenericThreadsImpl< TDev >::m_LastReadyEnqueueCount = 0u |
The time this event has been ready the last time. Ready means that the event was not waiting within a queue (not enqueued or already completed). If m_enqueueCount == m_LastReadyEnqueueCount, the event is currently not enqueued.
Definition at line 63 of file EventGenericThreads.hpp.
|
mutable |
The mutex used to synchronize access to the event.
Definition at line 60 of file EventGenericThreads.hpp.