update package/time/_time.c.

Signed-off-by: 李昂 <liang6516@outlook.com>
This commit is contained in:
李昂 2023-02-16 07:01:42 +00:00 committed by Gitee
parent b576716ca2
commit be7b05d9ee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -13,7 +13,9 @@ static void _do_sleep_ms_tick(uint32_t ms) {
uint32_t tick = pika_platform_get_tick();
while (pika_platform_get_tick() - tick < ms) {
#if PIKA_EVENT_ENABLE
_VMEvent_pickupEvent();
// _VMEvent_pickupEvent();
//! can not pickup event in this function, because it will cause the GIL
//! lock error.
#endif
pika_platform_thread_delay();
}