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 e41b77d commit c915b67Copy full SHA for c915b67
Python/instrumentation.c
@@ -29,6 +29,15 @@
29
}
30
#define ASSERT_WORLD_STOPPED() assert(_PyInterpreterState_GET()->stoptheworld.world_stopped);
31
32
+#else
33
+
34
+#define ASSERT_WORLD_STOPPED_OR_LOCKED(obj)
35
+#define ASSERT_WORLD_STOPPED()
36
37
+#endif
38
39
+#ifdef Py_GIL_DISABLED
40
41
#define LOCK_CODE(code) \
42
assert(!_PyInterpreterState_GET()->stoptheworld.world_stopped); \
43
Py_BEGIN_CRITICAL_SECTION(code)
@@ -37,8 +46,6 @@
46
47
#else
48
-#define ASSERT_WORLD_STOPPED_OR_LOCKED(obj)
-#define ASSERT_WORLD_STOPPED()
49
#define LOCK_CODE(code)
50
#define UNLOCK_CODE()
44
51
0 commit comments