mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
update package/time/_time.c.
Signed-off-by: 李昂 <liang6516@outlook.com>
This commit is contained in:
parent
b576716ca2
commit
be7b05d9ee
@ -13,7 +13,9 @@ static void _do_sleep_ms_tick(uint32_t ms) {
|
|||||||
uint32_t tick = pika_platform_get_tick();
|
uint32_t tick = pika_platform_get_tick();
|
||||||
while (pika_platform_get_tick() - tick < ms) {
|
while (pika_platform_get_tick() - tick < ms) {
|
||||||
#if PIKA_EVENT_ENABLE
|
#if PIKA_EVENT_ENABLE
|
||||||
_VMEvent_pickupEvent();
|
// _VMEvent_pickupEvent();
|
||||||
|
//! can not pickup event in this function, because it will cause the GIL
|
||||||
|
//! lock error.
|
||||||
#endif
|
#endif
|
||||||
pika_platform_thread_delay();
|
pika_platform_thread_delay();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user