mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-06 03:05:30 -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
|
||||
not (A.compare_and_set global_thread_wrappers_ l (f :: l))
|
||||
do
|
||||
()
|
||||
Domain_.relax ()
|
||||
done
|
||||
|
||||
exception Shutdown
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue