forked from ocaml-multicore/eio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9381d9
commit 9875511
Showing
7 changed files
with
107 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
(library | ||
(name eio_main) | ||
(public_name eio_main) | ||
(libraries eio_luv | ||
(libraries | ||
(select eio_main.ml from | ||
(eio_linux -> eio_main.linux.ml) | ||
(eio_kqueue -> eio_main.kqueue.ml) | ||
(_ -> eio_main.default.ml)))) | ||
(eio_luv -> eio_main.default.ml)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
let run_luv fn = Eio_luv.run (fun env -> fn (env :> Eio.Stdenv.t)) | ||
let run_kqueue fn = Eio_kqueue.run (fun env -> fn (env :> Eio.Stdenv.t)) | ||
|
||
let run fn = | ||
match Sys.getenv_opt "EIO_BACKEND" with | ||
| Some "kqueue" -> | ||
run_kqueue fn | ||
| _ -> run_luv fn | ||
let run fn = run_kqueue fn |