TripleBuffer.h File Reference
#include <atomic>
#include <type_traits>
#include <iostream>
#include <SimoxUtility/threads/system_thread_id.h>
+ Include dependency graph for TripleBuffer.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TripleBuffer< T >
 A simple triple buffer for lockfree comunication between a single writer and a single reader. More...
 
class  WriteBufferedTripleBuffer< T >
 Same as the TripleBuffer, but partial writes of the data structure are ok. The write operation may be a bit slower and memory consumption may be 1/3 higher. More...
 

Namespaces

 armarx
 This file offers overloads of toIce() and fromIce() functions for STL container types.
 

Macros

#define DEBUG_MODE_PRINT
 

Macro Definition Documentation

◆ DEBUG_MODE_PRINT

#define DEBUG_MODE_PRINT
Value:
if (debugMode.load()) \
std::cout << '[' << simox::system_thread_id() << "] [" << this << "] "

Definition at line 74 of file TripleBuffer.h.