mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-05 19:00:33 -05:00
no need to configure for us
This commit is contained in:
parent
784127316d
commit
d7c8df43d9
1 changed files with 1 additions and 12 deletions
|
|
@ -4,19 +4,8 @@ module Select = Picos_io_select
|
|||
|
||||
let fd_of_unix_fd : Unix.file_descr -> Fd.t = Fun.id
|
||||
|
||||
open struct
|
||||
let has_configured = Atomic.make false
|
||||
end
|
||||
|
||||
let configure ?intr_sig ?handle_sigchld ?ignore_sigpipe () : unit =
|
||||
if not (Atomic.exchange has_configured true) then
|
||||
Select.configure ?intr_sig ?handle_sigchld ?ignore_sigpipe ()
|
||||
|
||||
(** [main f] runs [f()] inside a scheduler. *)
|
||||
let main ?intr_sig ?handle_sigchld ?ignore_sigpipe (f : Moonpool.Runner.t -> 'a)
|
||||
: 'a =
|
||||
configure ?intr_sig ?handle_sigchld ?ignore_sigpipe ();
|
||||
Moonpool_fib.main f
|
||||
let main (f : Moonpool.Runner.t -> 'a) : 'a = Moonpool_fib.main f
|
||||
|
||||
(** {2 Async read/write} *)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue