Sunshine master
Self-hosted game stream host for Moonlight.
platf::shm_data_t Class Reference

RAII wrapper that detaches mapped SysV shared memory. More...

Public Member Functions

 shm_data_t (shm_data_t &&other) noexcept
 Move ownership of an attached shared-memory mapping.
 
 shm_data_t (void *data)
 Take ownership of an attached shared-memory mapping.
 

Public Attributes

void * data
 Address returned by shmat for the shared-memory segment.
 

Detailed Description

RAII wrapper that detaches mapped SysV shared memory.

Constructor & Destructor Documentation

◆ shm_data_t() [1/2]

platf::shm_data_t::shm_data_t ( void * data)
inline

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: