GlobalMemorySlot Class Reference
HiCR
|
HiCR::backend::hwloc::GlobalMemorySlot Class Referencefinal
#include <globalMemorySlot.hpp>
Inheritance diagram for HiCR::backend::hwloc::GlobalMemorySlot:

Public Member Functions | |
GlobalMemorySlot (const HiCR::GlobalMemorySlot::tag_t globalTag=0, const HiCR::GlobalMemorySlot::globalKey_t globalKey=0, std::shared_ptr< HiCR::LocalMemorySlot > sourceLocalMemorySlot=nullptr) | |
~GlobalMemorySlot () override=default | |
__INLINE__ bool | trylock () |
__INLINE__ void | lock () |
__INLINE__ void | unlock () |
![]() | |
GlobalMemorySlot (const tag_t globalTag=0, const globalKey_t globalKey=0, std::shared_ptr< HiCR::LocalMemorySlot > sourceLocalMemorySlot=nullptr) | |
__INLINE__ tag_t | getGlobalTag () const noexcept |
__INLINE__ globalKey_t | getGlobalKey () const noexcept |
__INLINE__ std::shared_ptr< HiCR::LocalMemorySlot > | getSourceLocalMemorySlot () noexcept |
Additional Inherited Members | |
![]() | |
using | globalKey_t = uint64_t |
using | tag_t = uint64_t |
Detailed Description
This class represents an abstract definition for a global Memory Slot resource for the hwloc backends
It uses mutexes to enforce the mutual exclusion logic
Constructor & Destructor Documentation
◆ GlobalMemorySlot()
|
inline |
Constructor for a MemorySlot class for the MPI backend
- Parameters
-
[in] globalTag For global memory slots, indicates the subset of global memory slots this belongs to [in] globalKey Unique identifier for that memory slot that this slot occupies. [in] sourceLocalMemorySlot The local memory slot (if applicable) from whence this global memory slot is created
◆ ~GlobalMemorySlot()
|
overridevirtualdefault |
Default destructor
Reimplemented from HiCR::GlobalMemorySlot.
Member Function Documentation
◆ lock()
|
inline |
Attempts to lock memory lock using its mutex object
This function might block the caller if the memory slot is already locked
◆ trylock()
|
inline |
Attempts to lock memory lock using its mutex object
This function never blocks the caller
- Returns
- True, if successful; false, otherwise.
◆ unlock()
|
inline |
Unlocks the memory slot, if previously locked by the caller
The documentation for this class was generated from the following file:
- /home/runner/work/HiCR/HiCR/include/hicr/backends/hwloc/globalMemorySlot.hpp
Generated by