Import Upstream version 20180207
[hcoop/debian/mlton.git] / lib / mlton / basic / counter.sig
CommitLineData
7f918cf1
CE
1(* Copyright (C) 2009 Matthew Fluet.
2 * Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh
3 * Jagannathan, and Stephen Weeks.
4 *
5 * MLton is released under a BSD-style license.
6 * See the file MLton-LICENSE for details.
7 *)
8
9signature COUNTER =
10 sig
11 type t
12
13 val new: int -> t
14 val next: t -> int
15 val tick: t -> unit
16 val reset: t * int -> unit
17 val value: t -> int
18 val equals: t * t -> bool
19 end