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

Go to the source code of this file.

Defines

#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)

Define Documentation

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

Definition at line 36 of file posix/coil/atomic.h.

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

Definition at line 48 of file posix/coil/atomic.h.

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

Definition at line 62 of file posix/coil/atomic.h.

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

Definition at line 42 of file posix/coil/atomic.h.

#define COIL_USES_ATOMIC_OP   coil::Mutex __mutex;

Definition at line 34 of file posix/coil/atomic.h.


Function Documentation

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

Definition at line 54 of file posix/coil/atomic.h.



openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Aug 27 2015 14:16:39