Sunshine0.0.5917
Sunshine 0.0.5917
Self-hosted game stream host for Moonlight.
Loading...
Searching...
No Matches
platf::shm_data_t Class Reference

RAII wrapper that detaches mapped SysV shared memory, with null representing an empty mapping. More...

Public Member Functions

 shm_data_t (shm_data_t &&other) noexcept
 Move ownership of an attached shared-memory mapping.
 shm_data_t (std::uint8_t *data)
 Explicitly take ownership of an attached shared-memory mapping.

Public Attributes

std::uint8_t * data
 Attached shared-memory bytes, or null when this wrapper owns no attachment.

Detailed Description

RAII wrapper that detaches mapped SysV shared memory, with null representing an empty mapping.

Constructor & Destructor Documentation

◆ shm_data_t() [1/2]

platf::shm_data_t::shm_data_t ( std::uint8_t * data)
inlineexplicit

Explicitly take ownership of an attached shared-memory mapping.

Parameters
dataPointer returned by shmat.

◆ shm_data_t() [2/2]

platf::shm_data_t::shm_data_t ( shm_data_t && other)
inlinenoexcept

Move ownership of an attached shared-memory mapping.

Parameters
otherShared-memory mapping wrapper whose attachment is moved.

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