Yield because maybe good???

This commit is contained in:
Mid 2025-09-06 15:06:14 +03:00
parent fa67393723
commit 2bf96c0f76

2
main.c
View File

@ -71,8 +71,10 @@ static size_t threads_parallel(LVM *lvm, void *ud, size_t argn, set_LValueU *hea
lvm_reset_regs(&set);
lvm_call(lvm, func, 0, heap, &set);
// This thread must still respond to the GC
while(atomic_load(&ctx.finished) != no - 1) {
lvm->safepoint_func(lvm, heap, regset);
thrd_yield();
}
return 0;