alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::BlockSharedMemStMemberMasterSync< TDataAlignBytes > Class Template Reference

#include <BlockSharedMemStMemberMasterSync.hpp>

+ Inheritance diagram for alpaka::BlockSharedMemStMemberMasterSync< TDataAlignBytes >:

Public Member Functions

 BlockSharedMemStMemberMasterSync (uint8_t *mem, std::size_t capacity, std::function< void()> fnSync, std::function< bool()> fnIsMasterThread)
 
- Public Member Functions inherited from alpaka::detail::BlockSharedMemStMemberImpl< core::vectorization::defaultAlignment >
 BlockSharedMemStMemberImpl (std::uint8_t *mem, std::size_t capacity)
 
void alloc (std::uint32_t id) const
 
auto getLatestVarPtr () const -> T *
 Get last allocated variable. More...
 
auto getVarPtr (std::uint32_t id) const -> T *
 Give the pointer to an exiting variable. More...
 

Public Attributes

std::function< bool()> m_isMasterThreadFn
 
std::function< void()> m_syncFn
 

Detailed Description

template<std::size_t TDataAlignBytes = core::vectorization::defaultAlignment>
class alpaka::BlockSharedMemStMemberMasterSync< TDataAlignBytes >

Definition at line 21 of file BlockSharedMemStMemberMasterSync.hpp.

Constructor & Destructor Documentation

◆ BlockSharedMemStMemberMasterSync()

template<std::size_t TDataAlignBytes = core::vectorization::defaultAlignment>
alpaka::BlockSharedMemStMemberMasterSync< TDataAlignBytes >::BlockSharedMemStMemberMasterSync ( uint8_t *  mem,
std::size_t  capacity,
std::function< void()>  fnSync,
std::function< bool()>  fnIsMasterThread 
)
inline

Definition at line 26 of file BlockSharedMemStMemberMasterSync.hpp.

Member Data Documentation

◆ m_isMasterThreadFn

template<std::size_t TDataAlignBytes = core::vectorization::defaultAlignment>
std::function<bool()> alpaka::BlockSharedMemStMemberMasterSync< TDataAlignBytes >::m_isMasterThreadFn

Definition at line 38 of file BlockSharedMemStMemberMasterSync.hpp.

◆ m_syncFn

template<std::size_t TDataAlignBytes = core::vectorization::defaultAlignment>
std::function<void()> alpaka::BlockSharedMemStMemberMasterSync< TDataAlignBytes >::m_syncFn

Definition at line 37 of file BlockSharedMemStMemberMasterSync.hpp.


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