Commit 28d3db1
committed
ports/stm32: Update mutex typedef to use k_sem for Zephyr threading.
Changed mp_thread_mutex_t and mp_thread_recursive_mutex_t to use
struct k_sem instead of struct k_mutex. This change is required to
fix GIL deadlock issues with Zephyr threading, as k_mutex has
ownership tracking that prevents cross-thread lock/unlock operations
needed by the GIL.
This matches the reference implementation in ports/zephyr and enables
proper multi-threaded operation with shared locks and thread
arguments.
Signed-off-by: Andrew Leech <[email protected]>1 parent 57e6e61 commit 28d3db1
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | | - | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
0 commit comments