Name

release

Synopsis

                           s.release( )

When s’s state is greater than 0 or when the state is 0 but no thread is waiting on s, release increments the state by 1. When s’s state is 0 and some thread is waiting on s, release leaves s’s state at 0 and wakes up an arbitrary waiting thread. The thread that calls release is not suspended: it remains ready and continues to execute normally.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.