X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fvendor%2Fmsgpack%2Fgcc_atomic.h;fp=src%2Fvendor%2Fmsgpack%2Fgcc_atomic.h;h=6b1b1a799654fd4ecc975617bac56ff51488b60e;hp=0000000000000000000000000000000000000000;hb=116a02e33a6aba03128c268c333e1c35584848d2;hpb=267d66aaabfe8f520be83749fe75505ddf2d086f diff --git a/src/vendor/msgpack/gcc_atomic.h b/src/vendor/msgpack/gcc_atomic.h new file mode 100644 index 000000000..6b1b1a799 --- /dev/null +++ b/src/vendor/msgpack/gcc_atomic.h @@ -0,0 +1,25 @@ +/* + * Distributed under the Boost Software License, Version 1.0. + * (See accompanying file LICENSE_1_0.txt or copy at + * http://www.boost.org/LICENSE_1_0.txt) + */ + +#ifndef MSGPACK_GCC_ATOMIC_H +#define MSGPACK_GCC_ATOMIC_H + +#if defined(__cplusplus) +extern "C" { +#endif + +typedef int _msgpack_atomic_counter_t; + +int _msgpack_sync_decr_and_fetch(volatile _msgpack_atomic_counter_t* ptr); +int _msgpack_sync_incr_and_fetch(volatile _msgpack_atomic_counter_t* ptr); + + +#if defined(__cplusplus) +} +#endif + + +#endif // MSGPACK_GCC_ATOMIC_H