messagepack implementation for embedded systems (mbed / arduino)
Dependents: hello_message_pack
msgpack-c & msgpack-c++ https://github.com/msgpack/msgpack-c implementation for embedded systems (mbed / Arduino)
include/gcc_atomic.h@4:bd0c06dd6e92, 2016-02-22 (annotated)
- Committer:
- hideakitai
- Date:
- Mon Feb 22 01:43:48 2016 +0000
- Revision:
- 4:bd0c06dd6e92
- Parent:
- 0:3f9dbf1e2cb0
fix throw error
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hideakitai | 0:3f9dbf1e2cb0 | 1 | /* |
hideakitai | 0:3f9dbf1e2cb0 | 2 | * Distributed under the Boost Software License, Version 1.0. |
hideakitai | 0:3f9dbf1e2cb0 | 3 | * (See accompanying file LICENSE_1_0.txt or copy at |
hideakitai | 0:3f9dbf1e2cb0 | 4 | * http://www.boost.org/LICENSE_1_0.txt) |
hideakitai | 0:3f9dbf1e2cb0 | 5 | */ |
hideakitai | 0:3f9dbf1e2cb0 | 6 | |
hideakitai | 0:3f9dbf1e2cb0 | 7 | #ifndef MSGPACK_GCC_ATOMIC_H |
hideakitai | 0:3f9dbf1e2cb0 | 8 | #define MSGPACK_GCC_ATOMIC_H |
hideakitai | 0:3f9dbf1e2cb0 | 9 | |
hideakitai | 0:3f9dbf1e2cb0 | 10 | #if defined(__cplusplus) |
hideakitai | 0:3f9dbf1e2cb0 | 11 | extern "C" { |
hideakitai | 0:3f9dbf1e2cb0 | 12 | #endif |
hideakitai | 0:3f9dbf1e2cb0 | 13 | |
hideakitai | 0:3f9dbf1e2cb0 | 14 | typedef int _msgpack_atomic_counter_t; |
hideakitai | 0:3f9dbf1e2cb0 | 15 | |
hideakitai | 0:3f9dbf1e2cb0 | 16 | int _msgpack_sync_decr_and_fetch(volatile _msgpack_atomic_counter_t* ptr); |
hideakitai | 0:3f9dbf1e2cb0 | 17 | int _msgpack_sync_incr_and_fetch(volatile _msgpack_atomic_counter_t* ptr); |
hideakitai | 0:3f9dbf1e2cb0 | 18 | |
hideakitai | 0:3f9dbf1e2cb0 | 19 | |
hideakitai | 0:3f9dbf1e2cb0 | 20 | #if defined(__cplusplus) |
hideakitai | 0:3f9dbf1e2cb0 | 21 | } |
hideakitai | 0:3f9dbf1e2cb0 | 22 | #endif |
hideakitai | 0:3f9dbf1e2cb0 | 23 | |
hideakitai | 0:3f9dbf1e2cb0 | 24 | |
hideakitai | 0:3f9dbf1e2cb0 | 25 | #endif // MSGPACK_GCC_ATOMIC_H |