11#ifndef MSGPACK_GCC_ATOMIC_HPP
12#define MSGPACK_GCC_ATOMIC_HPP
14#if defined(__GNUC__) && ((__GNUC__*10 + __GNUC_MINOR__) < 41)
16#include <bits/atomicity.h>
20 return __gnu_cxx::__exchange_and_add(ptr, -1) - 1;
25 return __gnu_cxx::__exchange_and_add(ptr, 1) + 1;
unsigned int _msgpack_atomic_counter_t
Definition sysdep.hpp:73
#define _msgpack_sync_incr_and_fetch(ptr)
Definition sysdep.hpp:75
#define _msgpack_sync_decr_and_fetch(ptr)
Definition sysdep.hpp:74