]> code.ossystems Code Review - openembedded-core.git/commit
python3: use monotonic clock for condvar if possible
authorZqiang <qiang.zhang@windriver.com>
Tue, 3 Aug 2021 05:11:38 +0000 (13:11 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Aug 2021 07:51:17 +0000 (08:51 +0100)
commit5a268f95a5bf5ee8c244a8af685d6c84aad9a4ac
tree96acd04302f418718222ec2a81af9aa2812d4855
parent54368f1b02e1ac4aa068515730a8c8bcd3683eb3
python3: use monotonic clock for condvar if possible

The timeout for threading.Lock, threading.Condition, etc, is not using
a monotonic clock, it is affected if the system time (realtime clock)
is set.

This patch will make condvar use monotonic clock.
Refence: https://bugs.python.org/issue41710

Signed-off-by: Zqiang <qiang.zhang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3_3.9.6.bb