Author neologix
Recipients anacrolix, neologix, pitrou, tasslehoff, vstinner
Date 2012-03-14.17:02:42
SpamBayes Score 1.45318e-10
Marked as misclassified No
Message-id <>
In-reply-to <>
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:

    from time import monotonic as _time
except (ImportError, OSError):
    from time import _time
Date User Action Args
2012-03-14 17:02:43neologixsetrecipients: + neologix, pitrou, vstinner, anacrolix, tasslehoff
2012-03-14 17:02:42neologixlinkissue14222 messages
2012-03-14 17:02:42neologixcreate