Message155770
Random thoughts:
- as noted by Antoine, it probably affects a lot of code throughout
the standard library
- sem_timedwait() (used by lock.acquire() on POSIX) is affected (the
implementation using a condition variable could use
pthread_condattr_setclock(), see issue #12822)
- there's a side effect to that change: on Linux, when the system is
suspended, CLOCK_MONOTONIC stops: so on resume, you'd have to wait for
the complete timeout to expire, whereas with time.time() you'll break
out early
That being said, it's probably a good idea.
As for the patches, I don't really like the idea of having to use this
idiom everywhere:
try:
from time import monotonic as _time
_time()
except (ImportError, OSError):
from time import _time |
|
Date |
User |
Action |
Args |
2012-03-14 17:02:43 | neologix | set | recipients:
+ neologix, pitrou, vstinner, anacrolix, tasslehoff |
2012-03-14 17:02:42 | neologix | link | issue14222 messages |
2012-03-14 17:02:42 | neologix | create | |
|