mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-07 11:45:39 -05:00
perf pool: use relax() in spin loop
This commit is contained in:
parent
259fee2722
commit
0b70060c40
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ let add_global_thread_loop_wrapper f : unit =
|
||||||
let l = A.get global_thread_wrappers_ in
|
let l = A.get global_thread_wrappers_ in
|
||||||
not (A.compare_and_set global_thread_wrappers_ l (f :: l))
|
not (A.compare_and_set global_thread_wrappers_ l (f :: l))
|
||||||
do
|
do
|
||||||
()
|
Domain_.relax ()
|
||||||
done
|
done
|
||||||
|
|
||||||
exception Shutdown
|
exception Shutdown
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue