ipcq 0.12.0
Loading...
Searching...
No Matches
ipcq::detail Namespace Reference

Namespaces

namespace  config
 

Classes

class  BoostConditionPolicy
 Condition policy based on boost::interprocess::interprocess_condition. More...
 
struct  BoostInterprocessTraits
 
struct  ConstTraits
 Shared memory queue iterator trait for const iterator. More...
 
struct  Iterator
 Provides standard iterator concept to ipcq queue. More...
 
struct  NonConstTraits
 Shared memory queue iterator trait for non-const iterator. More...
 
struct  QueueInfo
 Static parameters for a given shm queue. More...
 
struct  ReaderRollback
 
struct  ReaderRollback< false, State >
 
struct  ReaderRollback< true, State >
 
class  ShmControl
 ShmControl provides the basic data model for the queue and low level operations on the shared memory queue, some of which are atomic. More...
 
class  ShmControlBase
 Non-virtual base-class for ShmControl that does not depend on any static type. More...
 
struct  ShmControlBlock
 Control block residing in shared memory shared by readers and writers. More...
 
class  ShmRemover
 Small helper that removes shared memory, to make ShmControl exception-safe with RAII. More...
 
class  SpinConditionPolicy
 Simple spinning condition. More...
 

Functions

void PrefaultPages (void const *begin, void const *end) noexcept
 Prefault memory by reading a byte in every page starting at start up to lenght bytes.
 
template<class Rep, class Period>
boost::posix_time::ptime AddDuration (boost::posix_time::ptime const &point, std::chrono::duration< Rep, Period > duration) noexcept
 Helper that adds to posix_time::ptime a std:chrono duration.
 
std::string MakeShmObjectName (char const *topic_name)
 Creates the shared memory object name from topic_name.
 

Variables

template<class>
constexpr bool always_false_v = false
 

Function Documentation

◆ AddDuration()

template<class Rep, class Period>
boost::posix_time::ptime ipcq::detail::AddDuration ( boost::posix_time::ptime const & point,
std::chrono::duration< Rep, Period > duration )
noexcept

Helper that adds to posix_time::ptime a std:chrono duration.

Definition at line 213 of file shm.hpp.

◆ MakeShmObjectName()

std::string ipcq::detail::MakeShmObjectName ( char const * topic_name)
inline

Creates the shared memory object name from topic_name.

Parameters
topic_nameThe ipcq shared memory topic name.

Definition at line 225 of file shm.hpp.

◆ PrefaultPages()

void ipcq::detail::PrefaultPages ( void const * begin,
void const * end )
inlinenoexcept

Prefault memory by reading a byte in every page starting at start up to lenght bytes.

To avoid optimizing this no-op the pointer is declared volatile.

Definition at line 164 of file shm.hpp.

Variable Documentation

◆ always_false_v

template<class>
bool ipcq::detail::always_false_v = false
inlineconstexpr

Definition at line 24 of file reader.hpp.