Skip to content

Commit 2378c88

Browse files
committed
Export _Py_yield.
1 parent 62b137e commit 2378c88

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Include/internal/pycore_lock.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ PyMutex_LockFlags(PyMutex *m, _PyLockFlags flags)
7171
extern int _PyMutex_TryUnlock(PyMutex *m);
7272

7373
// Yield the processor to other threads (e.g., sched_yield).
74-
extern void _Py_yield(void);
74+
// Exported for _testembed.
75+
PyAPI_FUNC(void) _Py_yield(void);
7576

7677

7778
// PyEvent is a one-time event notification

0 commit comments

Comments
 (0)