[issue31267] threading.Timer object is affected by changes to system time: Python locks should use a monotonic clock if available

2021-10-01 Thread STINNER Victor
Change by STINNER Victor : -- superseder: Use the monotonic clock for thread conditions on POSIX platforms -> NewGIL should use CLOCK_MONOTONIC if possible. ___ Python tracker ___

[issue31267] threading.Timer object is affected by changes to system time: Python locks should use a monotonic clock if available

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: > I'm sorrry, I read the issue too quickly and misunderstood it. I guess that > it's a duplicate of bpo-23428: "Use the monotonic clock for thread conditions > on POSIX platforms". This issue is blocked the libc... Oops, I wanted to post this comment on bpo-

[issue31267] threading.Timer object is affected by changes to system time: Python locks should use a monotonic clock if available

2019-01-16 Thread STINNER Victor
STINNER Victor added the comment: I'm sorrry, I read the issue too quickly and misunderstood it. I guess that it's a duplicate of bpo-23428: "Use the monotonic clock for thread conditions on POSIX platforms". This issue is blocked the libc... -- _

[issue31267] threading.Timer object is affected by changes to system time: Python locks should use a monotonic clock if available

2018-07-27 Thread Andrey Ovchinnikov
Change by Andrey Ovchinnikov : -- nosy: +anikey ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue31267] threading.Timer object is affected by changes to system time: Python locks should use a monotonic clock if available

2017-10-09 Thread STINNER Victor
STINNER Victor added the comment: > it looks as if measures were implemented but never merged. The blocker issue is that sem_timedwait() doesn't support CLOCK_MONOTONIC. The glibc has to be enhanced to support this new feature. -- ___ Python tracke

[issue31267] threading.Timer object is affected by changes to system time: Python locks should use a monotonic clock if available

2017-10-07 Thread Thomas Keppler
Thomas Keppler added the comment: Hello Victor, thank you for your update on this issue. By looking through the other bug reports you listed, it looks as if measures were implemented but never merged. Am I right with this observation? If so, will we ever see a switch over to monotonic time?

[issue31267] threading.Timer object is affected by changes to system time: Python locks should use a monotonic clock if available

2017-09-15 Thread STINNER Victor
Changes by STINNER Victor : -- title: threading.Timer object is affected by changes to system time -> threading.Timer object is affected by changes to system time: Python locks should use a monotonic clock if available ___ Python tracker

[issue31267] threading.Timer object is affected by changes to system time

2017-09-15 Thread STINNER Victor
STINNER Victor added the comment: > ... I already created bpo-23428 to call "pthread_condattr_setclock(&attr, > CLOCK_MONOTONIC);" in Python, it was 2 years ago ;-) See also bpo-12822: "NewGIL should use CLOCK_MONOTONIC if possible". -- ___ Python t

[issue31267] threading.Timer object is affected by changes to system time

2017-09-15 Thread STINNER Victor
STINNER Victor added the comment: threading.Timer is implemented with threading.Event.wait(timeout) which is implemented with threading.Condition.wait(timeout). threading.Condition.wait(timeout) creates a lock called "waiter" and uses it to implement the wait: waiter.acquire(True, timeout)

[issue31267] threading.Timer object is affected by changes to system time

2017-09-15 Thread Matthias Schmidt
Matthias Schmidt added the comment: Hi, any news on this issue? We are facing this one as well and looking forward for a fix/solution. Cheers, Matthis Schmidt -- nosy: +Matthias Schmidt ___ Python tracker

[issue31267] threading.Timer object is affected by changes to system time

2017-08-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue31267] threading.Timer object is affected by changes to system time

2017-08-23 Thread Thomas Keppler
New submission from Thomas Keppler: Hi, I have been playing around with threading.Timer objects as timeouts for a project and noticed that my timeouts are affected by system time changes. To test this, I have written a small demonstration script (timer_testcase.py) which you can find in the a

[issue31267] threading.Timer object is affected by changes to system time

2017-08-23 Thread Thomas Keppler
Changes by Thomas Keppler : Added file: http://bugs.python.org/file47097/test_monotonic.py ___ Python tracker ___ ___ Python-bugs-list mailing