Skip to content

Conversation

@Zylphrex
Copy link
Member

As pointed out in #1813 (comment), gevent patches the time module and time.sleep will only release the GIL if there no other greenlets ready to run. This ensures that we always use the builtin time.sleep and not the patched version provided by gevent.

As pointed out in #1813 (comment),
gevent patches the `time` module and `time.sleep` will only release the GIL if
there no other greenlets ready to run. This ensures that we always use the
builtin `time.sleep` and not the patched version provided by `gevent`.
@Zylphrex Zylphrex requested review from a team, antonpirker and sl0thentr0py January 27, 2023 15:59
@Zylphrex Zylphrex merged commit 9d23e5f into master Jan 30, 2023
@Zylphrex Zylphrex deleted the txiao/fix/always-use-builtin-time-sleep branch January 30, 2023 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants