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 0e91e74 commit 37c8e66Copy full SHA for 37c8e66
core/platform/lf_rp2040_support.c
@@ -302,9 +302,9 @@ int lf_cond_signal(lf_cond_t* cond) {
302
}
303
304
int lf_cond_wait(lf_cond_t* cond) {
305
- mutex_exit(cond->mutex);
+ lf_mutex_unlock(cond->mutex);
306
sem_acquire_blocking(&(cond->sema));
307
- mutex_enter_blocking(cond->mutex);
+ lf_mutex_lock(cond->mutex);
308
return 0;
309
310
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