aboutsummaryrefslogtreecommitdiff
path: root/lib/remoteCounter.mli
diff options
context:
space:
mode:
authorGaëtan Gilbert2021-03-26 15:34:59 +0100
committerGaëtan Gilbert2021-04-14 12:54:38 +0200
commit3efee577b4c92b38a987b40e555fae2c0a2023c4 (patch)
tree182f9cd42fdb9969bab3149f3add552c7455de2e /lib/remoteCounter.mli
parent004bf5770bdcdd1b35dd27f683c733505823e741 (diff)
Remove remote counter system
Diffstat (limited to 'lib/remoteCounter.mli')
-rw-r--r--lib/remoteCounter.mli31
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/remoteCounter.mli b/lib/remoteCounter.mli
deleted file mode 100644
index 42d1f8a8d1..0000000000
--- a/lib/remoteCounter.mli
+++ /dev/null
@@ -1,31 +0,0 @@
-(************************************************************************)
-(* * The Coq Proof Assistant / The Coq Development Team *)
-(* v * Copyright INRIA, CNRS and contributors *)
-(* <O___,, * (see version control and CREDITS file for authors & dates) *)
-(* \VV/ **************************************************************)
-(* // * This file is distributed under the terms of the *)
-(* * GNU Lesser General Public License Version 2.1 *)
-(* * (see LICENSE file for the text of the license) *)
-(************************************************************************)
-
-(* Remote counters are *global* counters for fresh ids. In the master/slave
- * scenario, the slave installs a getter that asks the master for a fresh
- * value. In the scenario of a slave that runs after the death of the master
- * on some marshalled data, a backup of all counters status should be taken and
- * restored to avoid reusing ids.
- * Counters cannot be created by threads, they must be created once and forall
- * as toplevel module declarations. *)
-
-
-type 'a getter = unit -> 'a
-type 'a installer = ('a getter) -> unit
-
-val new_counter : name:string ->
- 'a -> incr:('a -> 'a) -> build:('a -> 'b) -> 'b getter * 'b installer
-
-type remote_counters_status
-val backup : unit -> remote_counters_status
-(* like backup but makes a copy so that further increment does not alter
- * the snapshot *)
-val snapshot : unit -> remote_counters_status
-val restore : remote_counters_status -> unit