This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
标题: Python threading.Event().wait() depends on the system time
类型: behavior Stage:
Components: Library (Lib) Versions: Python 3.8
process
状态: open Resolution:
Dependencies: 后续:
分配给: 抄送列表: AleksandrAQ
优先级: normal 关键字:

AleksandrAQ2022-04-06 10:19 创建。最近一次由 admin2022-04-11 14:59 修改。

文件
文件名 上传时间 Description 编辑
reproduction.py AleksandrAQ, 2022-04-06 10:19 You need root privileges to change the system time.
Messages (1)
msg416851 - (view) Author: Aleksandr (AleksandrAQ) 日期: 2022-04-06 10:19
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?
历史
日期 用户 动作 参数
2022-04-11 14:59:58admin修改github: 91394
2022-04-06 10:19:09AleksandrAQ创建