mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-06 03:05:30 -05:00
perf: quicker check for []
This commit is contained in:
parent
e0f5b5bbcb
commit
6bf58e3e62
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ module Action_queue = struct
|
||||||
while
|
while
|
||||||
let old = Atomic.get self.q in
|
let old = Atomic.get self.q in
|
||||||
if Atomic.compare_and_set self.q old (a :: old) then (
|
if Atomic.compare_and_set self.q old (a :: old) then (
|
||||||
is_first := old = [];
|
is_first := old == [];
|
||||||
false
|
false
|
||||||
) else
|
) else
|
||||||
true
|
true
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue