rcutils  master
C API providing common utilities and data structures.
Macros
stdatomic_helper.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <stdatomic.h>
Include dependency graph for stdatomic_helper.h:

Go to the source code of this file.

Macros

#define my__has_feature(...)   0
 
#define rcutils_atomic_load(object, out)   (out) = atomic_load(object)
 
#define rcutils_atomic_compare_exchange_strong(object, out, expected, desired)   (out) = atomic_compare_exchange_strong(object, expected, desired)
 
#define rcutils_atomic_exchange(object, out, desired)   (out) = atomic_exchange(object, desired)
 
#define rcutils_atomic_store(object, desired)   atomic_store(object, desired)
 
#define rcutils_atomic_fetch_add(object, out, arg)   (out) = atomic_fetch_add(object, arg)
 

Macro Definition Documentation

◆ my__has_feature

#define my__has_feature (   ...)    0

◆ rcutils_atomic_load

#define rcutils_atomic_load (   object,
  out 
)    (out) = atomic_load(object)

◆ rcutils_atomic_compare_exchange_strong

#define rcutils_atomic_compare_exchange_strong (   object,
  out,
  expected,
  desired 
)    (out) = atomic_compare_exchange_strong(object, expected, desired)

◆ rcutils_atomic_exchange

#define rcutils_atomic_exchange (   object,
  out,
  desired 
)    (out) = atomic_exchange(object, desired)

◆ rcutils_atomic_store

#define rcutils_atomic_store (   object,
  desired 
)    atomic_store(object, desired)

◆ rcutils_atomic_fetch_add

#define rcutils_atomic_fetch_add (   object,
  out,
  arg 
)    (out) = atomic_fetch_add(object, arg)