Proofline

The sync fallback calls `is_set()` while holding the event’s condition.

thekarannagpal/sdk-python#1Reviewed commit d2ecdac

Warning · Concurrency

A subclass that overrides `wait()` and acquires that same non-reentrant condition in `is_set()` deadlocks before the timed wait starts.

Impact

After a pending review poll, `wait_for_review()` can hang indefinitely instead of honoring its timeout.

Recommended action

Release the condition before calling the overridable `is_set()`, then recheck the signal latch and deadline.

Cited code

Checked
Pull request code. The environment was not checked.
Status
Completed
Started
Completed