OSVR-Core
Classes | Namespaces | Macros | Typedefs | Functions
SharedMemory.h File Reference

Header. More...

#include <boost/version.hpp>
#include <osvr/Util/StdInt.h>
#include <boost/interprocess/mem_algo/rbtree_best_fit.hpp>
#include <boost/interprocess/interprocess_fwd.hpp>
#include <boost/interprocess/offset_ptr.hpp>
#include <cctype>
#include <string>
#include <boost/interprocess/managed_shared_memory.hpp>

Go to the source code of this file.

Classes

struct  osvr::common::ipc::device_type< ManagedMemory >
 Helper function to be able to remove shared memory. More...
 

Namespaces

 osvr
 The main namespace for all C++ elements of the framework, internal and external.
 
 osvr::common
 Handles spatial transformations.
 

Macros

#define BOOST_CB_DISABLE_DEBUG
 required because CircularBuffer's debug mode uses raw pointers. More...
 
#define BOOST_DATE_TIME_NO_LIB
 Allows header-only usage of Interprocess.
 

Typedefs

template<typename T >
using osvr::common::ipc::ipc_offset_ptr = boost::interprocess::offset_ptr< T >
 
template<class MutexFamily >
using osvr::common::ipc::my_mem_alloc_algo = boost::interprocess::rbtree_best_fit< MutexFamily, ipc_offset_ptr< void > >
 
template<class IndexConfig >
using osvr::common::ipc::index_type = boost::interprocess::iset_index< IndexConfig >
 
typedef uint8_t osvr::common::ipc::SharedMemoryBackendType
 
using osvr::common::ipc::basic_managed_shm = boost::interprocess::basic_managed_shared_memory< char, my_mem_alloc_algo< boost::interprocess::mutex_family >, index_type >
 
using osvr::common::ipc::default_managed_shm = basic_managed_shm
 

Functions

std::string osvr::common::ipc::make_name_safe (std::string const &input)
 Turns all "unsafe" characters in a name into underscores. More...
 

Detailed Description

Header.

Date
2015
Author
Sensics, Inc. http://sensics.com/osvr

Macro Definition Documentation

§ BOOST_CB_DISABLE_DEBUG

#define BOOST_CB_DISABLE_DEBUG

required because CircularBuffer's debug mode uses raw pointers.

see http://stackoverflow.com/a/2335693/265522

Function Documentation

§ make_name_safe()

std::string osvr::common::ipc::make_name_safe ( std::string const &  input)
inline

Turns all "unsafe" characters in a name into underscores.

Must start with an alphabetic character.