We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cec63a commit a1c93a6Copy full SHA for a1c93a6
2 files changed
py/gc.c
@@ -94,7 +94,7 @@
94
#define FTB_CLEAR(block) do { MP_STATE_MEM(gc_finaliser_table_start)[(block) / BLOCKS_PER_FTB] &= (~(1 << ((block) & 7))); } while (0)
95
#endif
96
97
-#if MICROPY_PY_THREAD
+#if MICROPY_PY_THREAD && !MICROPY_PY_THREAD_GIL
98
#define GC_ENTER() mp_thread_mutex_lock(&MP_STATE_MEM(gc_mutex), 1)
99
#define GC_EXIT() mp_thread_mutex_unlock(&MP_STATE_MEM(gc_mutex))
100
#else
py/qstr.c
@@ -72,7 +72,7 @@
72
#error unimplemented qstr length decoding
73
74
75
76
#define QSTR_ENTER() mp_thread_mutex_lock(&MP_STATE_VM(qstr_mutex), 1)
77
#define QSTR_EXIT() mp_thread_mutex_unlock(&MP_STATE_VM(qstr_mutex))
78
0 commit comments