mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-07 18:37:56 -05:00
doc
This commit is contained in:
parent
c2a1ee5904
commit
acae4ff88d
1 changed files with 6 additions and 0 deletions
|
|
@ -23,6 +23,12 @@ open struct
|
|||
let shard_mask = shard - 1
|
||||
end
|
||||
|
||||
(** Create a buffer chain.
|
||||
|
||||
@param sharded
|
||||
if true, multiple buffers are created, to reduce contention on each buffer
|
||||
in case of concurrent access. This makes the buf chain thread-safe. If
|
||||
false, there is only one (unprotected) buffer. *)
|
||||
let create ~(sharded : bool) ~(buf_pool : Buf_pool.t) () : t =
|
||||
let bufs =
|
||||
if sharded then (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue