Source file opentelemetry_domain.ml
1
2
3
4
5
6
7
8
9
10
11
let cpu_relax = Domain.cpu_relax
let relax_loop i =
for _j = 1 to i do cpu_relax () done
let is_main_domain = Domain.is_main_domain
module DLS = struct
type 'a key = 'a Domain.DLS.key
let new_key ?split_from_parent init = Domain.DLS.new_key ?split_from_parent init
let get = Domain.DLS.get
let set = Domain.DLS.set
end