![]() |
XRootD
|
#include <XrdSysShmem.hh>
Static Public Member Functions | |
static std::tuple< void *, size_t > | create (const std::string &name, size_t size) |
template<typename T > | |
static std::tuple< T *, size_t > | get (const std::string &name) |
template<typename T > | |
static std::tuple< T *, size_t > | make_array (const std::string &name, size_t count) |
template<typename T , typename... Args> | |
static std::tuple< T *, size_t > | make_array (const std::string &name, size_t count, Args &&... args) |
Utility class for creating and obtaining shared emory
Definition at line 54 of file XrdSysShmem.hh.
|
inlinestatic |
Helper function for creating shared memory block
name | : name of the shared memory block (shared memory object should be identified by a name of the form /somename) |
size | : size of the shared memory segment |
Definition at line 65 of file XrdSysShmem.hh.
References close, fstat(), ftruncate(), and stat().
Referenced by make_array().
|
inlinestatic |
Helper function for getting shared memory block
name | : name of the shared memory block (shared memory object should be identified by a name of the form /somename) |
Definition at line 93 of file XrdSysShmem.hh.
References close, fstat(), and stat().
|
inlinestatic |
Helper function for creating a shared memory block and constructing an array of objects of type T (constructed with default constructor) within the block.
name | : name of the shared memory block (shared memory object should be identified by a name of the form /somename) |
count | : size of the array |
Definition at line 119 of file XrdSysShmem.hh.
References create().
|
inlinestatic |
Helper function for creating a shared memory block and constructing an array of objects of type T (constructed with using arguments args) within the block.
name | : name of the shared memory block (shared memory object should be identified by a name of the form /somename) |
count | : size of the array |
args | : the arguments for the T constructor |
Definition at line 142 of file XrdSysShmem.hh.
References create().