Yield because maybe good???
This commit is contained in:
parent
fa67393723
commit
2bf96c0f76
2
main.c
2
main.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user