Add conditionalization for (potentially unused) struct and function (#1282) (#1348)

This commit is contained in:
andygpz11 2023-05-25 21:46:47 +01:00 committed by GitHub
parent 1d9f1873d5
commit 4515719909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,6 +86,7 @@ static void async_context_threadsafe_background_lock_check(async_context_t *self
}
}
#if ASYNC_CONTEXT_THREADSAFE_BACKGROUND_MULTI_CORE
typedef struct sync_func_call{
async_when_pending_worker_t worker;
semaphore_t sem;
@ -100,7 +101,7 @@ static void handle_sync_func_call(async_context_t *context, async_when_pending_w
sem_release(&call->sem);
async_context_remove_when_pending_worker(context, worker);
}
#endif
static void lock_release(async_context_threadsafe_background_t *self) {
bool outermost = 1 == recursive_mutex_enter_count(&self->lock_mutex);