mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 03:05:29 -05:00
fix atomics
This commit is contained in:
parent
d62d5515f1
commit
830e056b31
1 changed files with 2 additions and 2 deletions
|
|
@ -10,10 +10,10 @@ let atomic_before_412 = {|
|
|||
y
|
||||
|
||||
let[@inline] compare_and_set r seen v =
|
||||
if r.x == seen then
|
||||
if r.x == seen then (
|
||||
r.x <- v;
|
||||
true
|
||||
else false
|
||||
) else false
|
||||
|
||||
let[@inline] fetch_and_add r x =
|
||||
let v = r.x in
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue