add thread_delay for run_until

This commit is contained in:
pikastech 2023-04-16 10:59:15 +08:00
parent 5ea62ce9e0
commit 42c85835d0
2 changed files with 2 additions and 0 deletions

View File

@ -209,6 +209,7 @@ void PikaStdTask_Task_run_until_ms(PikaObj* self, int until_ms) {
if (obj_getInt(self, "tick") > until_ms) {
return;
}
pika_platform_thread_delay();
}
}

View File

@ -209,6 +209,7 @@ void PikaStdTask_Task_run_until_ms(PikaObj* self, int until_ms) {
if (obj_getInt(self, "tick") > until_ms) {
return;
}
pika_platform_thread_delay();
}
}