MIRA
Namespaces | Macros | Functions
Atomic.h File Reference

Contains methods for simple atomic operations (such as increment, etc.) that are thread-safe without the need to lock a mutex, etc. More...

#include <boost/version.hpp>
#include <boost/interprocess/detail/atomic.hpp>
#include <platform/Types.h>
Include dependency graph for Atomic.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mira
 specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
 
 mira::atomic
 

Macros

#define MIRA_BOOST_DETAIL_NAMESPACE   detail
 

Functions

uint32 inc (volatile uint32 *var)
 Increments the value of the variable pointed to by var and returns its old value. More...
 
uint32 dec (volatile uint32 *var)
 Decrements the value of the variable pointed to by var and returns its old value. More...
 
void write (volatile uint32 *var, uint32 value)
 Sets the value of the variable pointed to by var in an atomic operation. More...
 
uint32 cas (volatile uint32 *var, uint32 value, uint32 cmp)
 Compare And Swap. More...
 

Detailed Description

Contains methods for simple atomic operations (such as increment, etc.) that are thread-safe without the need to lock a mutex, etc.

This is basically a facade for boost/interprocess/detail/atomic.hpp which may change in future releases.

Author
Erik Einhorn
Date
2012/10/01

Macro Definition Documentation

◆ MIRA_BOOST_DETAIL_NAMESPACE

#define MIRA_BOOST_DETAIL_NAMESPACE   detail