|
MXL : Media eXchange Layer
MXL
|
#include <SharedMemory.hpp>


Public Member Functions | |
| constexpr T const * | get () const noexcept |
| constexpr T * | get () noexcept |
| constexpr bool | isExclusive () const |
| bool | makeExclusive () |
| SharedMemoryInstance & | operator= (SharedMemoryInstance other) noexcept |
| constexpr | SharedMemoryInstance () noexcept |
| SharedMemoryInstance (char const *path, AccessMode mode, std::size_t payloadSize, LockMode lockMode) | |
| constexpr | SharedMemoryInstance (SharedMemoryInstance &&other) |
| SharedMemoryInstance (SharedMemoryInstance const &other)=delete | |
| constexpr void | swap (SharedMemoryInstance &other) noexcept |
| Public Member Functions inherited from mxl::lib::SharedMemoryBase | |
| constexpr AccessMode | accessMode () const noexcept |
| constexpr bool | created () const noexcept |
| constexpr bool | isValid () const noexcept |
| constexpr std::size_t | mappedSize () const noexcept |
| constexpr | operator bool () const noexcept |
| constexpr void | swap (SharedMemoryBase &other) noexcept |
| void | touch () |
Additional Inherited Members | |
| Protected Member Functions inherited from mxl::lib::SharedMemoryBase | |
| constexpr void const * | cdata () const noexcept |
| constexpr void const * | data () const noexcept |
| constexpr void * | data () noexcept |
| constexpr bool | isExclusive () const |
| bool | makeExclusive () |
| constexpr | SharedMemoryBase () noexcept |
| SharedMemoryBase (char const *path, AccessMode mode, std::size_t payloadSize, LockMode lockMode) | |
| constexpr | SharedMemoryBase (SharedMemoryBase &&other) noexcept |
| SharedMemoryBase (SharedMemoryBase const &other)=delete | |
| ~SharedMemoryBase () | |
Utility class that allocates and places a structure in shared memory
Definition at line 170 of file SharedMemory.hpp.
|
constexprnoexcept |
Definition at line 322 of file SharedMemory.hpp.
|
constexpr |
Definition at line 327 of file SharedMemory.hpp.
|
delete |
|
inline |
Create a shared memory mapping with the specified payload size, or alterntively open it for reading and writing
| path | The memory mapping path |
| mode | The memory mapping access mode |
| extraSize | Add this size to the shared memory in addition to sizeof(T) |
Definition at line 332 of file SharedMemory.hpp.
|
constexprnoexcept |
Accessor for the mapped data
Definition at line 367 of file SharedMemory.hpp.
|
constexprnoexcept |
Accessor for the mapped data
Definition at line 360 of file SharedMemory.hpp.
|
nodiscardconstexpr |
Check if the advisory lock for the shared memory file mapped by this objects is exclusive or shared.
| If | there is no lock at all, because either this is a read-only mapping of the memory, or because the object is in an invalid state. |
Definition at line 114 of file SharedMemory.hpp.
| bool SharedMemoryBase::makeExclusive | ( | ) |
Upgrade the lock held by the process for the shared memory file that is mapped by this object to an exclusive lock.
| std::runtime_error | If this is a read-only mapping of the memory or if the object is in an invalid state. |
Definition at line 122 of file SharedMemory.cpp.
|
inlinenoexcept |
Definition at line 347 of file SharedMemory.hpp.
|
constexprnoexcept |
Definition at line 354 of file SharedMemory.hpp.