mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
perf(pool): try to inline with_lock
This commit is contained in:
parent
178f7dc92f
commit
dd1cf2a046
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ module Make(P : PARAM) = struct
|
|||
|
||||
let set_exn_handler f = pool.exn_handler <- f
|
||||
|
||||
let with_lock_ t f =
|
||||
let[@inline] with_lock_ t f =
|
||||
Mutex.lock t.mutex;
|
||||
try
|
||||
let x = f t in
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue