aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-06-01 22:35:36 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-06-01 22:35:36 +0200
commit85dcbd75cd865eae504b260f522e1d9d9d7aac86 (patch)
treeaf3c0e3700bf5d48e6c77f0b3a6f93e62c456c03
parentd04c8c5ac7941071b21d878fd9a3a58d935f42b4 (diff)
downloadsynthpod-85dcbd75cd865eae504b260f522e1d9d9d7aac86.tar.xz
use proper atomic type.
-rw-r--r--VERSION2
-rw-r--r--bin/synthpod_alsa.c2
-rw-r--r--bin/synthpod_dummy.c2
-rw-r--r--plugins/synthpod_lv2.c4
-rw-r--r--plugins/synthpod_lv2_eo.c4
5 files changed, 7 insertions, 7 deletions
diff --git a/VERSION b/VERSION
index ddb77bbb..d7f49a97 100644
--- a/VERSION
+++ b/VERSION
@@ -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);
}