From e8cd571005555dd96ad3ec9ea46b62b415539930 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Sun, 18 Dec 2016 01:32:52 +0100 Subject: [PATCH] prepare 0.22 --- CHANGELOG.adoc | 7 +++++++ _oasis | 2 +- src/data/CCMultiSet.ml | 2 +- src/data/CCMultiSet.mli | 2 +- src/threads/CCLock.mli | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index a70fd23e..85ecba8e 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -1,5 +1,12 @@ = Changelog +== 0.22 + +- threads/CCLock: add `try_with_lock` to wrap `Mutex.try_lock` +- Add `CCMultiSet.remove_all` +- document errors in `CCIO` (close #86) +- use the new qtest/qcheck + == 0.21 - (breaking) make default `start`/`stop` arguments empty in printers (#82) diff --git a/_oasis b/_oasis index 4ca0a03c..ae02f539 100644 --- a/_oasis +++ b/_oasis @@ -1,6 +1,6 @@ OASISFormat: 0.4 Name: containers -Version: 0.21 +Version: 0.22 Homepage: https://github.com/c-cube/ocaml-containers Authors: Simon Cruanes License: BSD-2-clause diff --git a/src/data/CCMultiSet.ml b/src/data/CCMultiSet.ml index 8efbc9bf..c1f0c687 100644 --- a/src/data/CCMultiSet.ml +++ b/src/data/CCMultiSet.ml @@ -35,7 +35,7 @@ module type S = sig val remove_all : t -> elt -> t (** [remove_all set x] removes all occurrences of [x] from [set] - @since NEXT_RELEASE *) + @since 0.22 *) val update : t -> elt -> (int -> int) -> t (** [update set x f] calls [f n] where [n] is the current multiplicity diff --git a/src/data/CCMultiSet.mli b/src/data/CCMultiSet.mli index 136f0005..2f060dc2 100644 --- a/src/data/CCMultiSet.mli +++ b/src/data/CCMultiSet.mli @@ -35,7 +35,7 @@ module type S = sig val remove_all : t -> elt -> t (** [remove_all set x] removes all occurrences of [x] from [set] - @since NEXT_RELEASE *) + @since 0.22 *) val update : t -> elt -> (int -> int) -> t (** [update set x f] calls [f n] where [n] is the current multiplicity diff --git a/src/threads/CCLock.mli b/src/threads/CCLock.mli index 7569e26e..354e47c0 100644 --- a/src/threads/CCLock.mli +++ b/src/threads/CCLock.mli @@ -22,7 +22,7 @@ val try_with_lock : 'a t -> ('a -> 'b) -> 'b option (** [try_with_lock l f] runs [f x] in a critical section if [l] is not locked. [x] is the value protected by the lock [l]. If [f x] fails, [try_with_lock l f] fails too but the lock is released - @since NEXT_RELEASE *) + @since 0.22 *) (** Type allowing to manipulate the lock as a reference @since 0.13 *)