[issue47238] Python threading.Event().wait() depends on the system time

Aleksandr report at bugs.python.org
Wed Apr 6 06:19:09 EDT 2022


New submission from Aleksandr <aleksandr.avferonok at gmail.com>:

This happens on Ubuntu on Python versions 3.8.5 and 3.10.4

I have two threads that can change the system time to a day ago.
If the change in the system time for a day occurs at the time of wait, then I hang for one day plus the waiting time.

I thought Event.wait() uses a monotonous clock, but this behavior points to an absolute clock.

Are there any solutions?

----------
components: Library (Lib)
files: reproduction.py
messages: 416851
nosy: AleksandrAQ
priority: normal
severity: normal
status: open
title: Python threading.Event().wait() depends on the system time
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file50725/reproduction.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47238>
_______________________________________


More information about the Python-bugs-list mailing list