mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-06 11:15:38 -05:00
perf TLS: inline
This commit is contained in:
parent
e67bffeca5
commit
aa7906eb2c
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ type 'a key = {
|
|||
let counter = Atomic.make 0
|
||||
|
||||
(** Value used to detect a TLS slot that was not initialized yet *)
|
||||
let sentinel_value_for_uninit_tls_ () : Obj.t = Obj.repr counter
|
||||
let[@inline] sentinel_value_for_uninit_tls_ () : Obj.t = Obj.repr counter
|
||||
|
||||
let new_key compute : _ key =
|
||||
let index = Atomic.fetch_and_add counter 1 in
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue