9 #ifndef mrpt_synch_atomicincr_H
10 #define mrpt_synch_atomicincr_H
12 #include <mrpt/config.h>
16 #if defined( __clang__ ) && defined( MRPT_OS_APPLE )
18 #elif defined( __GNUC__ )
19 #if ( __GNUC__ * 100 + __GNUC_MINOR__ >= 402 )
20 # include <ext/atomicity.h>
22 # include <bits/atomicity.h>
40 #if defined( __GNUC__ ) && !defined( MRPT_OS_APPLE )
52 atomic_num_t operator--();
53 operator atomic_num_t()
const;
This class acts exactly as an int (or long) variable, but with atomic increment and decrement operato...
CAtomicCounter(CAtomicCounter const &)
Forbidden method.
CAtomicCounter & operator=(CAtomicCounter const &)
Forbidden method.
iterator operator++(int)
A thread-safe (ts) container which minimally emulates a std::map<>'s [] and find() methods but which ...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.