Skip to content

Commit 27a5607

Browse files
committed
remove dangerous FLS stuff
we don't use it and it makes it too easy to rely on FLS outside a fiber
1 parent b8b9a83 commit 27a5607

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/thread/fiber.ml

-13
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
include Moonpool_fib
22
module FLS = Moonpool_fib.Fls
33

4-
(** Access the context (inheritable hmap) *)
5-
let k_rcontext : Hmap.t FLS.t = FLS.k_local_hmap
6-
7-
(** Access the current rcontext *)
8-
let[@inline] get_rcontext () : Hmap.t = FLS.get ~default:Hmap.empty k_rcontext
9-
10-
let[@inline] get_from_rcontext (k : 'a Hmap.key) : 'a option =
11-
FLS.get_in_local_hmap_opt k
12-
13-
(** Add some k/v to the context *)
14-
let[@inline] add_to_rcontext (k : 'a Hmap.key) (x : 'a) : unit =
15-
FLS.set_in_local_hmap k x
16-
174
let add_on_cancel' fib k : unit = ignore (add_on_cancel fib k : cancel_handle)
185
let add_on_cancel_any' (Any fib) k : unit = add_on_cancel' fib k
196

0 commit comments

Comments
 (0)