perf(pool): try to inline with_lock

This commit is contained in:
Simon Cruanes 2021-03-24 18:44:07 -04:00
parent 178f7dc92f
commit dd1cf2a046

View file

@ -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