mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2024-09-29 04:58:50 +08:00
This commit is contained in:
parent
1d9f1873d5
commit
4515719909
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user