MessagePack for C
include
msgpack
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
14
typedef
int
_msgpack_atomic_counter_t
;
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
_msgpack_sync_decr_and_fetch
int _msgpack_sync_decr_and_fetch(volatile _msgpack_atomic_counter_t *ptr)
_msgpack_sync_incr_and_fetch
int _msgpack_sync_incr_and_fetch(volatile _msgpack_atomic_counter_t *ptr)
_msgpack_atomic_counter_t
int _msgpack_atomic_counter_t
Definition:
gcc_atomic.h:14
Generated by
1.8.17