The unpac monorepo manager self-hosting as a monorepo using unpac
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Move Dla to eio.utils

It doesn't need to be in eio.core, as nothing else there depends on it.

+10 -14
+2 -2
lib_eio/core/dla.ml lib_eio/utils/dla.ml
··· 7 7 | _ -> () 8 8 and await () = 9 9 if Atomic.get state != `Released then 10 - Suspend.enter "domain-local-await" @@ fun ctx enqueue -> 10 + Eio.Private.Suspend.enter "domain-local-await" @@ fun ctx enqueue -> 11 11 let awaiting = `Awaiting enqueue in 12 12 if Atomic.compare_and_set state `Init awaiting then ( 13 - Cancel.Fiber_context.set_cancel_fn ctx (fun ex -> 13 + Eio.Private.Fiber_context.set_cancel_fn ctx (fun ex -> 14 14 if Atomic.compare_and_set state awaiting `Released then ( 15 15 enqueue (Error ex) 16 16 )
+1 -1
lib_eio/core/dune
··· 1 1 (library 2 2 (name eio__core) 3 3 (public_name eio.core) 4 - (libraries hmap lwt-dllist fmt optint domain-local-await eio.runtime_events)) 4 + (libraries hmap lwt-dllist fmt optint eio.runtime_events))
-2
lib_eio/core/eio__core.ml
··· 19 19 | Fork = Fiber.Fork 20 20 | Get_context = Cancel.Get_context 21 21 end 22 - 23 - module Dla = Dla 24 22 end
-4
lib_eio/core/eio__core.mli
··· 782 782 val v : t 783 783 (** Backends should use this for {!Eio.Stdenv.debug}. *) 784 784 end 785 - 786 - module Dla : sig 787 - val prepare_for_await : unit -> Domain_local_await.t 788 - end 789 785 end
+1 -1
lib_eio/mock/backend.ml
··· 105 105 let result = ref None in 106 106 let `Exit_scheduler = 107 107 Domain_local_await.using 108 - ~prepare_for_await:Eio.Private.Dla.prepare_for_await 108 + ~prepare_for_await:Eio_utils.Dla.prepare_for_await 109 109 ~while_running:(fun () -> 110 110 fork ~new_fiber (fun () -> result := Some (main stdenv))) in 111 111 match !result with
+1
lib_eio/utils/dla.mli
··· 1 + val prepare_for_await : unit -> Domain_local_await.t
+1 -1
lib_eio/utils/dune
··· 1 1 (library 2 2 (name eio_utils) 3 3 (public_name eio.utils) 4 - (libraries eio psq fmt optint)) 4 + (libraries eio psq fmt optint domain-local-await))
+1
lib_eio/utils/eio_utils.ml
··· 5 5 module Lf_queue = Lf_queue 6 6 module Suspended = Suspended 7 7 module Zzz = Zzz 8 + module Dla = Dla
+1 -1
lib_eio_linux/sched.ml
··· 460 460 let `Exit_scheduler = 461 461 let new_fiber = Fiber_context.make_root () in 462 462 Domain_local_await.using 463 - ~prepare_for_await:Eio.Private.Dla.prepare_for_await 463 + ~prepare_for_await:Eio_utils.Dla.prepare_for_await 464 464 ~while_running:(fun () -> 465 465 fork ~new_fiber (fun () -> 466 466 Switch.run_protected ~name:"eio_linux" (fun sw ->
+1 -1
lib_eio_posix/sched.ml
··· 379 379 let `Exit_scheduler = 380 380 let new_fiber = Fiber_context.make_root () in 381 381 Domain_local_await.using 382 - ~prepare_for_await:Eio.Private.Dla.prepare_for_await 382 + ~prepare_for_await:Eio_utils.Dla.prepare_for_await 383 383 ~while_running:(fun () -> 384 384 fork ~new_fiber (fun () -> 385 385 Eio_unix.Private.Thread_pool.run t.thread_pool @@ fun () ->
+1 -1
lib_eio_windows/sched.ml
··· 370 370 let `Exit_scheduler = 371 371 let new_fiber = Fiber_context.make_root () in 372 372 Domain_local_await.using 373 - ~prepare_for_await:Eio.Private.Dla.prepare_for_await 373 + ~prepare_for_await:Eio_utils.Dla.prepare_for_await 374 374 ~while_running:(fun () -> 375 375 fork ~new_fiber (fun () -> 376 376 Eio_unix.Private.Thread_pool.run t.thread_pool @@ fun () ->