Use GCC atomics to avoid locking in callback.

This commit is contained in:
Themaister 2013-07-16 22:14:18 +02:00
parent 21a1ae72d5
commit 4bf3d47be1

View File

@ -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 { \