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 e178e42 commit f3a9c74Copy full SHA for f3a9c74
Include/internal/pycore_interp_structs.h
@@ -30,15 +30,10 @@ extern "C" {
30
#endif
31
32
// Executor list lock macros for thread-safe access to executor linked lists
33
-#ifdef Py_GIL_DISABLED
34
-# define EXECUTOR_LIST_LOCK(interp) \
35
- PyMutex_Lock(&(interp)->executor_list_lock)
36
-# define EXECUTOR_LIST_UNLOCK(interp) \
37
- PyMutex_Unlock(&(interp)->executor_list_lock)
38
-#else
39
-# define EXECUTOR_LIST_LOCK(interp) ((void)0)
40
-# define EXECUTOR_LIST_UNLOCK(interp) ((void)0)
41
-#endif
+#define EXECUTOR_LIST_LOCK(interp) \
+ FT_MUTEX_LOCK(&(interp)->executor_list_lock)
+#define EXECUTOR_LIST_UNLOCK(interp) \
+ FT_MUTEX_UNLOCK(&(interp)->executor_list_lock)
42
43
typedef int (*_Py_pending_call_func)(void *);
44
0 commit comments