Skip to content

Commit c9b4550

Browse files
committed
Reflow comment
1 parent a674d01 commit c9b4550

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Python/lock.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,9 @@ _PyRawMutex_LockSlow(_PyRawMutex *m)
249249
// Wait for us to be woken up. Note that we still have to lock the
250250
// mutex ourselves: it is NOT handed off to us.
251251
//
252-
// Loop until we observe an actual wakeup. Spurious returns (e.g.
253-
// Py_PARK_INTR from sigint_event on the main thread on Windows, or
254-
// EINTR on POSIX) could otherwise let us exit _PySemaphore_Wait and
255-
// destroy `waiter.sema` while _PyRawMutex_UnlockSlow's matching
252+
// Loop until we observe an actual wakeup. A return of Py_PARK_INTR
253+
// could otherwise let us exit _PySemaphore_Wait and destroy
254+
// `waiter.sema` while _PyRawMutex_UnlockSlow's matching
256255
// _PySemaphore_Wakeup is still pending, since the unlocker has
257256
// already CAS-removed us from the waiter list without any handshake.
258257
int res;

0 commit comments

Comments
 (0)