We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d5f710 commit dcbcc16Copy full SHA for dcbcc16
core/platform/lf_rp2040_support.c
@@ -310,9 +310,9 @@ int lf_cond_signal(lf_cond_t* cond) {
310
}
311
312
int lf_cond_wait(lf_cond_t* cond) {
313
- mutex_exit(cond->mutex);
+ lf_mutex_unlock(cond->mutex);
314
sem_acquire_blocking(&(cond->sema));
315
- mutex_enter_blocking(cond->mutex);
+ lf_mutex_lock(cond->mutex);
316
return 0;
317
318
include/core/platform/lf_rp2040_support.h
@@ -23,10 +23,10 @@
23
#ifndef LF_SINGLE_THREADED
24
#warning "Threaded support on rp2040 is still experimental"
25
26
-typedef mutex_t lf_mutex_t;
+typedef recursive_mutex_t lf_mutex_t;
27
typedef struct {
28
semaphore_t sema;
29
- mutex_t* mutex;
+ lf_mutex_t* mutex;
30
} lf_cond_t;
31
typedef int lf_thread_t;
32
0 commit comments