Sese Framework
3.0.0
A cross-platform framework
|
Shared Memory Class. More...
#include <SharedMemory.h>
Classes | |
class | Impl |
Public Types | |
using | Ptr = std::unique_ptr<SharedMemory> |
Public Member Functions | |
~SharedMemory () noexcept | |
void * | getBuffer () const noexcept |
Static Public Member Functions | |
static Ptr | create (const char *name, size_t size) noexcept |
static Result< Ptr, ErrorCode > | createEx (const char *name, size_t size) noexcept |
static Ptr | use (const char *name) noexcept |
static Result< Ptr, ErrorCode > | useEx (const char *name) noexcept |
Private Member Functions | |
SharedMemory (std::unique_ptr< Impl > impl) noexcept | |
Private Attributes | |
std::unique_ptr< Impl > | impl |
Shared Memory Class.
using sese::system::SharedMemory::Ptr = std::unique_ptr<SharedMemory> |
|
noexcept |
|
explicitprivatenoexcept |
|
staticnoexcept |
Create a shared memory block
name | Shared memory name |
size | Shared memory size |
nullptr | Creation failed |
References MAKE_UNIQUE_PRIVATE.
Referenced by sese::system::IPCChannel::create().
|
staticnoexcept |
References sese::getErrorCode(), and sese::getErrorString().
|
noexcept |
|
staticnoexcept |
Use an existing shared memory block
name | Shared memory name |
nullptr | Acquisition failed |
References MAKE_UNIQUE_PRIVATE.
Referenced by sese::system::IPCChannel::use().
|
staticnoexcept |
References sese::getErrorCode(), and sese::getErrorString().
|
private |
Referenced by getBuffer().