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 541169d commit d75e6d9Copy full SHA for d75e6d9
2 files changed
Include/internal/pycore_lock.h
@@ -72,7 +72,7 @@ extern int _PyMutex_TryUnlock(PyMutex *m);
72
73
// Yield the processor to other threads (e.g., sched_yield).
74
// Exported for _testembed.
75
-PyAPI_FUNC(void) _Py_yield(void);
+extern void _Py_yield(void);
76
77
78
// PyEvent is a one-time event notification
Programs/_testembed.c
@@ -2832,8 +2832,6 @@ stress_func(void *arg)
2832
2833
PyInterpreterGuard_Close(guard);
2834
2835
- _Py_yield();
2836
-
2837
guard = PyInterpreterGuard_FromView(view);
2838
PyInterpreterView_Close(view);
2839
@@ -2868,7 +2866,6 @@ test_concurrent_finalization_stress(void)
2868
2866
}
2869
2867
2870
2871
2872
Py_Finalize();
2873
2874
for (int i = 0; i < NUM_THREADS; ++i) {
0 commit comments