We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15e6827 commit 77e37ffCopy full SHA for 77e37ff
py/mpthread.h
@@ -50,6 +50,7 @@ void mp_thread_mutex_unlock(mp_thread_mutex_t *mutex);
50
#endif // MICROPY_PY_THREAD
51
52
#if MICROPY_PY_THREAD && MICROPY_PY_THREAD_GIL
53
+#include "py/mpstate.h"
54
#define MP_THREAD_GIL_ENTER() mp_thread_mutex_lock(&MP_STATE_VM(gil_mutex), 1)
55
#define MP_THREAD_GIL_EXIT() mp_thread_mutex_unlock(&MP_STATE_VM(gil_mutex))
56
#else
0 commit comments