Skip to content

Commit

Permalink
Remove alias Findlib package lwt.preemptive
Browse files Browse the repository at this point in the history
It was a deprecated alias for lwt.unix.

Resolves #487.
  • Loading branch information
aantron committed Mar 25, 2018
1 parent 2c87ac0 commit 6385306
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 19 deletions.
7 changes: 0 additions & 7 deletions META.lwt
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ archive(native) = "lwt.cmxa"
plugin(byte) = "lwt.cma"
plugin(native) = "lwt.cmxs"

package "preemptive" (
#directory = "preemptive"
version = "dev"
description = "Preemptive thread support for Lwt (deprecated; use lwt.unix)"
requires = "lwt.unix"
)

package "unix" (
#directory = "unix"
version = "dev"
Expand Down
4 changes: 0 additions & 4 deletions doc/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,6 @@ This list surveys them, roughly in order of importance.
Some of the C code in the Unix binding is generated by
`src/unix/gen_stubs.ml`.

- `src/preemptive/` provides `Lwt_preemptive` if the threaded runtime is
available. This is almost always the case when compiling to native code (i.e.,
when the Unix binding is available).

- `src/react/` provides the separate library `Lwt_react`. This is basically an
independent project that lives in the Lwt repo.

Expand Down
2 changes: 0 additions & 2 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ PKGS=\
INCS=\
-I ${BLD}/core \
-I ${BLD}/ppx \
-I ${BLD}/preemptive \
-I ${BLD}/react \
-I ${BLD}/unix

MLIS=\
$(wildcard ${SRC}/core/*.mli) \
$(wildcard ${SRC}/ppx/*.mli) \
$(wildcard ${SRC}/preemptive/*.mli) \
$(wildcard ${SRC}/react/*.mli) \
$(filter-out ${BLD}/unix/lwt_unix.cppo.mli,$(wildcard ${BLD}/unix/*.mli))

Expand Down
2 changes: 1 addition & 1 deletion doc/manual.wiki
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ let () =
//detach// the computation to a preemptive thread.
This is done by the module {{{Lwt_preemptive}}} of the
{{{lwt.preemptive}}} package which maintains a pool of system
{{{lwt.unix}}} package which maintains a pool of system
threads. The main function is:
<<code language="ocaml" |val detach : ('a -> 'b) -> 'a -> 'b Lwt.t
Expand Down
1 change: 0 additions & 1 deletion src/util/install_filter.ml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ let filter_sub_path path s =

let sub_paths = [
"unix";
"preemptive";
"options";
"syntax";
"ppx";
Expand Down
2 changes: 1 addition & 1 deletion test/packaging/jbuilder/preemptive/jbuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

(executable
((name user)
(libraries (lwt.preemptive))))
(libraries (lwt.unix))))
4 changes: 1 addition & 3 deletions test/packaging/ocamlfind/preemptive/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
.PHONY : test
test : clean
@# Deliberately link with lwt.preemptive incorrectly, as Lwt is supporting
@# this usage until 4.0.0.
ocamlfind opt -package lwt -c user.ml
ocamlfind opt -package lwt.preemptive -thread -linkpkg user.cmx
ocamlfind opt -package lwt.unix -thread -linkpkg user.cmx
./a.out

.PHONY : clean
Expand Down

0 comments on commit 6385306

Please sign in to comment.