UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
shm Class Reference
Inheritance diagram for shm:
Inheritance graph
Collaboration diagram for shm:
Collaboration graph

Public Member Functions

 shm (shm_opts const &opts)
 
 ~shm ()
 
void * get ()
 
- Public Member Functions inherited from resource
virtual ~resource ()
 

Private Attributes

void * m_data
 

Additional Inherited Members

- Static Public Member Functions inherited from resource
static resource * create (type_t type, options_t const &options)
 
static string get_suffix (type_t type)
 

Detailed Description

Definition at line 123 of file resource_manager.cpp.

Constructor & Destructor Documentation

◆ shm()

shm::shm ( shm_opts const & opts)
inline

Definition at line 125 of file resource_manager.cpp.

125 {
126 m_data = calloc(1, opts.m_size);
127 }
void * m_data

References m_data, and shm_opts::m_size.

◆ ~shm()

shm::~shm ( )
inline

Definition at line 129 of file resource_manager.cpp.

129 {
130 free(m_data);
131 }

References m_data.

Member Function Documentation

◆ get()

void * shm::get ( )
inline

Definition at line 133 of file resource_manager.cpp.

133 {
134 return m_data;
135 }

References m_data.

Referenced by rm_get_shm().

Member Data Documentation

◆ m_data

void* shm::m_data
private

Definition at line 138 of file resource_manager.cpp.

Referenced by shm(), ~shm(), and get().


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