reproduction.py: You need root privileges to change the system time.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2022-04-06.10:19:09.231>labels= ['3.8', 'type-bug', 'library']
title='Python threading.Event().wait() depends on the system time'updated_at=<Date2022-04-06.10:19:09.231>user='https://github.com/AleksandrAQ'
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.
AleksandrAQ mannequin commentedApr 6, 2022
•
edited by ezio-melotti
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: