diff options
author | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2017-06-01 22:35:36 +0200 |
---|---|---|
committer | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2017-06-01 22:35:36 +0200 |
commit | 85dcbd75cd865eae504b260f522e1d9d9d7aac86 (patch) | |
tree | af3c0e3700bf5d48e6c77f0b3a6f93e62c456c03 | |
parent | d04c8c5ac7941071b21d878fd9a3a58d935f42b4 (diff) | |
download | synthpod-85dcbd75cd865eae504b260f522e1d9d9d7aac86.tar.xz |
use proper atomic type.
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | bin/synthpod_alsa.c | 2 | ||||
-rw-r--r-- | bin/synthpod_dummy.c | 2 | ||||
-rw-r--r-- | plugins/synthpod_lv2.c | 4 | ||||
-rw-r--r-- | plugins/synthpod_lv2_eo.c | 4 |
5 files changed, 7 insertions, 7 deletions
@@ -1 +1 @@ -0.1.4989 +0.1.4999 diff --git a/bin/synthpod_alsa.c b/bin/synthpod_alsa.c index d113e992..91d51962 100644 --- a/bin/synthpod_alsa.c +++ b/bin/synthpod_alsa.c @@ -70,7 +70,7 @@ struct _prog_t { uint8_t m [MIDI_SEQ_SIZE]; save_state_t save_state; - _Atomic int kill; + atomic_int kill; uv_thread_t thread; uint32_t srate; diff --git a/bin/synthpod_dummy.c b/bin/synthpod_dummy.c index 6b920b79..71f2b04e 100644 --- a/bin/synthpod_dummy.c +++ b/bin/synthpod_dummy.c @@ -33,7 +33,7 @@ struct _prog_t { LV2_Atom_Forge forge; save_state_t save_state; - _Atomic int kill; + atomic_int kill; uv_thread_t thread; uint32_t srate; diff --git a/plugins/synthpod_lv2.c b/plugins/synthpod_lv2.c index 44ef9966..d2c6b8f6 100644 --- a/plugins/synthpod_lv2.c +++ b/plugins/synthpod_lv2.c @@ -20,12 +20,12 @@ #include <synthpod_lv2.h> -static _Atomic(xpress_uuid_t) voice_uuid = ATOMIC_VAR_INIT(INT64_MAX / UINT16_MAX * 3LL); +static atomic_long voice_uuid = ATOMIC_VAR_INIT(INT64_MAX / UINT16_MAX * 3LL); static xpress_uuid_t _voice_map_new_uuid(void *handle) { - _Atomic(xpress_uuid_t) *uuid = handle; + atomic_long *uuid = handle; return atomic_fetch_add_explicit(uuid, 1, memory_order_relaxed); } diff --git a/plugins/synthpod_lv2_eo.c b/plugins/synthpod_lv2_eo.c index 0f0d1ed4..1d161279 100644 --- a/plugins/synthpod_lv2_eo.c +++ b/plugins/synthpod_lv2_eo.c @@ -20,12 +20,12 @@ #include <synthpod_lv2.h> -static _Atomic xpress_uuid_t voice_uuid = ATOMIC_VAR_INIT(INT64_MAX / UINT16_MAX * 4LL); +static atomic_long voice_uuid = ATOMIC_VAR_INIT(INT64_MAX / UINT16_MAX * 4LL); static xpress_uuid_t _voice_map_new_uuid(void *handle) { - _Atomic xpress_uuid_t *uuid = handle; + atomic_long *uuid = handle; return atomic_fetch_add_explicit(uuid, 1, memory_order_relaxed); } |