mirror of
https://git.yoctoproject.org/poky
synced 2026-02-10 10:43:02 +01:00
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 (From OE-Core rev: 5a268f95a5bf5ee8c244a8af685d6c84aad9a4ac) Signed-off-by: Zqiang <qiang.zhang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -74,6 +74,9 @@ DEPENDS = "bzip2-replacement-native libffi bzip2 openssl sqlite3 zlib virtual/li
|
||||
DEPENDS:append:class-target = " python3-native"
|
||||
DEPENDS:append:class-nativesdk = " python3-native"
|
||||
|
||||
# force to use the mutex+cond implementation (https://bugs.python.org/issue41710)
|
||||
CFLAGS += "-DHAVE_BROKEN_POSIX_SEMAPHORES"
|
||||
|
||||
EXTRA_OECONF = " --without-ensurepip --enable-shared --with-platlibdir=${baselib}"
|
||||
EXTRA_OECONF:append:class-native = " --bindir=${bindir}/${PN}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user