Update _PyEval_AddPendingCall comment (#95817)

This commit is contained in:
zhanpon 2022-08-11 20:32:52 +09:00 committed by GitHub
parent 8b34e914bb
commit 23a757f44f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -630,8 +630,8 @@ _PyEval_AddPendingCall(PyInterpreterState *interp,
{
struct _pending_calls *pending = &interp->ceval.pending;
/* Ensure that _PyEval_InitPendingCalls() was called
and that _PyEval_FiniPendingCalls() is not called yet. */
/* Ensure that _PyEval_InitState() was called
and that _PyEval_FiniState() is not called yet. */
assert(pending->lock != NULL);
PyThread_acquire_lock(pending->lock, WAIT_LOCK);