mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 19:24:46 +00:00
Use GCC atomics to avoid locking in callback.
This commit is contained in:
parent
21a1ae72d5
commit
4bf3d47be1
@ -63,7 +63,6 @@ static void opensl_callback(SLAndroidSimpleBufferQueueItf bq, void *ctx)
|
||||
sl_t *sl = (sl_t*)ctx;
|
||||
__sync_fetch_and_sub(&sl->buffered_blocks, 1);
|
||||
scond_signal(sl->cond);
|
||||
slock_unlock(sl->lock);
|
||||
}
|
||||
|
||||
#define GOTO_IF_FAIL(x) do { \
|
||||
|
Loading…
Reference in New Issue
Block a user