MessagePack for C
gcc_atomic.h
Go to the documentation of this file.
1 /*
2  * Distributed under the Boost Software License, Version 1.0.
3  * (See accompanying file LICENSE_1_0.txt or copy at
4  * http://www.boost.org/LICENSE_1_0.txt)
5  */
6 
7 #ifndef MSGPACK_GCC_ATOMIC_H
8 #define MSGPACK_GCC_ATOMIC_H
9 
10 #if defined(__cplusplus)
11 extern "C" {
12 #endif
13 
15 
16 int _msgpack_sync_decr_and_fetch(volatile _msgpack_atomic_counter_t* ptr);
17 int _msgpack_sync_incr_and_fetch(volatile _msgpack_atomic_counter_t* ptr);
18 
19 
20 #if defined(__cplusplus)
21 }
22 #endif
23 
24 
25 #endif // MSGPACK_GCC_ATOMIC_H
int _msgpack_sync_incr_and_fetch(volatile _msgpack_atomic_counter_t *ptr)
int _msgpack_atomic_counter_t
Definition: gcc_atomic.h:14
int _msgpack_sync_decr_and_fetch(volatile _msgpack_atomic_counter_t *ptr)