mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
bpo-33608: Deal with pending calls relative to runtime shutdown. (gh-12246)
This commit is contained in:
parent
7c4fcb6b05
commit
842a2f07f2
3 changed files with 70 additions and 22 deletions
|
@ -11,7 +11,10 @@ extern "C" {
|
|||
#include "pycore_atomic.h"
|
||||
#include "pythread.h"
|
||||
|
||||
PyAPI_FUNC(void) _Py_FinishPendingCalls(void);
|
||||
|
||||
struct _pending_calls {
|
||||
int finishing;
|
||||
PyThread_type_lock lock;
|
||||
/* Request for running pending calls. */
|
||||
_Py_atomic_int calls_to_do;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue