diff --git a/CHANGES.md b/CHANGES.md index a295fa77..e5dc0608 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,11 @@ +# 0.7 + +- add `Moonpool_fiber.spawn_top_ignore` +- add `moonpool-io`, based on `picos_io` (still very experimental) +- move to picos as the foundation layer for concurrency primitives (#30) +- move to `thread-local-storage` 0.2 with get/set API + # 0.6 - breaking: remove `Immediate_runner` (bug prone and didn't diff --git a/dune-project b/dune-project index 36a3d94e..3c5eef8f 100644 --- a/dune-project +++ b/dune-project @@ -2,7 +2,7 @@ (using mdx 0.2) (name moonpool) -(version 0.6) +(version 0.7) (generate_opam_files true) (source (github c-cube/moonpool)) @@ -52,7 +52,7 @@ (package (name moonpool-io) - (synopsis "Async IO for moonpool, relying on picos") + (synopsis "Async IO for moonpool, relying on picos (experimental)") (allow_empty) ; on < 5.0 (depends (moonpool (= :version)) diff --git a/moonpool-io.opam b/moonpool-io.opam index 76a6ab82..9bcbc301 100644 --- a/moonpool-io.opam +++ b/moonpool-io.opam @@ -1,7 +1,7 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -version: "0.6" -synopsis: "Async IO for moonpool, relying on picos" +version: "0.7" +synopsis: "Async IO for moonpool, relying on picos (experimental)" maintainer: ["Simon Cruanes"] authors: ["Simon Cruanes"] license: "MIT" diff --git a/moonpool-lwt.opam b/moonpool-lwt.opam index 3532ef18..8ebde456 100644 --- a/moonpool-lwt.opam +++ b/moonpool-lwt.opam @@ -1,6 +1,6 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -version: "0.6" +version: "0.7" synopsis: "Event loop for moonpool based on Lwt-engine (experimental)" maintainer: ["Simon Cruanes"] authors: ["Simon Cruanes"] diff --git a/moonpool.opam b/moonpool.opam index f3c884ac..7f377fd0 100644 --- a/moonpool.opam +++ b/moonpool.opam @@ -1,6 +1,6 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -version: "0.6" +version: "0.7" synopsis: "Pools of threads supported by a pool of domains" maintainer: ["Simon Cruanes"] authors: ["Simon Cruanes"] diff --git a/src/core/exn_bt.mli b/src/core/exn_bt.mli index 665acfdb..13ddd3da 100644 --- a/src/core/exn_bt.mli +++ b/src/core/exn_bt.mli @@ -1,6 +1,6 @@ (** Exception with backtrace. - Type changed @since NEXT_RELEASE + Type changed @since 0.7 @since 0.6 *) @@ -26,4 +26,4 @@ type nonrec 'a result = ('a, t) result val unwrap : 'a result -> 'a (** [unwrap (Ok x)] is [x], [unwrap (Error ebt)] re-raises [ebt]. - @since NEXT_RELEASE *) + @since 0.7 *) diff --git a/src/core/fut.mli b/src/core/fut.mli index cc8f85ee..bd0ee0dd 100644 --- a/src/core/fut.mli +++ b/src/core/fut.mli @@ -39,7 +39,7 @@ val on_result_ignore : _ t -> (Exn_bt.t option -> unit) -> unit when [fut] is set; or calls [f] immediately if [fut] is already set. It does not pass the result, only a success/error signal. - @since NEXT_RELEASE *) + @since 0.7 *) exception Already_fulfilled diff --git a/src/core/moonpool.mli b/src/core/moonpool.mli index eb459cb9..fdb9e520 100644 --- a/src/core/moonpool.mli +++ b/src/core/moonpool.mli @@ -71,7 +71,7 @@ val spawn_on_current_runner : (unit -> 'a) -> 'a Fut.t val get_current_runner : unit -> Runner.t option (** See {!Runner.get_current_runner} - @since NEXT_RELEASE *) + @since 0.7 *) [@@@ifge 5.0] @@ -222,7 +222,7 @@ module Private : sig module Worker_loop_ = Worker_loop_ (** Worker loop. This is useful to implement custom runners, it should run on each thread of the runner. - @since NEXT_RELEASE *) + @since 0.7 *) module Domain_ = Domain_ (** Utils for domains *) diff --git a/src/core/trigger.ml b/src/core/trigger.ml index f7fda452..92789a68 100644 --- a/src/core/trigger.ml +++ b/src/core/trigger.ml @@ -1,5 +1,5 @@ (** Triggers from picos - @since NEXT_RELEASE *) + @since 0.7 *) include Picos.Trigger diff --git a/src/fib/fiber.mli b/src/fib/fiber.mli index 87f4021e..6a2320d7 100644 --- a/src/fib/fiber.mli +++ b/src/fib/fiber.mli @@ -150,4 +150,4 @@ val spawn_ignore : ?protect:bool -> (unit -> _) -> unit val spawn_top_ignore : on:Runner.t -> (unit -> _) -> unit (** Like {!spawn_top} but ignores the result. - @since NEXT_RELEASE *) + @since 0.7 *) diff --git a/src/sync/lock.mli b/src/sync/lock.mli index 51754a39..2240b41d 100644 --- a/src/sync/lock.mli +++ b/src/sync/lock.mli @@ -21,7 +21,7 @@ This lock is based on {!Picos_sync.Mutex} so it is [await]-safe. - @since NEXT_RELEASE *) + @since 0.7 *) type 'a t (** A value protected by a cooperative mutex *)