Macros | Functions
ace/coil/atomic.h File Reference
#include <coil/Mutex.h>
#include <coil/Guard.h>
Include dependency graph for ace/coil/atomic.h:

Go to the source code of this file.

Macros

#define atomic_add(x, y)
 
#define atomic_decr(x)
 
#define atomic_exchange_add(x, y)   exchange_add(x, y, &__mutex)
 
#define atomic_incr(x)
 
#define COIL_USES_ATOMIC_OP   coil::Mutex __mutex;
 

Functions

int exchange_add (int *x, int y, coil::Mutex *mutex)
 

Macro Definition Documentation

◆ atomic_add

#define atomic_add (   x,
 
)
Value:
{ \
coil::Guard<coil::Mutex> guard(__mutex); \
*x = *x + y; \
}

Definition at line 25 of file ace/coil/atomic.h.

◆ atomic_decr

#define atomic_decr (   x)
Value:
{ \
coil::Guard<coil::Mutex> guard(__mutex); \
--(*x); \
}

Definition at line 37 of file ace/coil/atomic.h.

◆ atomic_exchange_add

#define atomic_exchange_add (   x,
 
)    exchange_add(x, y, &__mutex)

Definition at line 51 of file ace/coil/atomic.h.

◆ atomic_incr

#define atomic_incr (   x)
Value:
{ \
coil::Guard<coil::Mutex> guard(__mutex); \
++(*x); \
}

Definition at line 31 of file ace/coil/atomic.h.

◆ COIL_USES_ATOMIC_OP

#define COIL_USES_ATOMIC_OP   coil::Mutex __mutex;

Definition at line 23 of file ace/coil/atomic.h.

Function Documentation

◆ exchange_add()

int exchange_add ( int *  x,
int  y,
coil::Mutex mutex 
)

Definition at line 43 of file ace/coil/atomic.h.



openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Feb 28 2022 23:00:45