From 16a2717d25096fcbd07b252e775b66b6fbb6d2bd Mon Sep 17 00:00:00 2001 From: gareuselesinge Date: Tue, 20 Aug 2013 12:43:42 +0000 Subject: Universe counters on slaves are in sync with master Simple framework for remote counters. The slaves ask the master for a fresh value. On the master the thread manager answers with a bunch of fresh values (so that further requests can be immediately satisfied). Remote counters are guarded with a mutex on the master, because all slave managers as well as the master thread can access the counter at the same time. I know the name sucks. These counters are remote for the slaves, and local for the master. I'm open to suggestions... git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16713 85f007b7-540e-0410-9357-904b9bb8a0f7 --- lib/remoteCounter.mli | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/remoteCounter.mli (limited to 'lib/remoteCounter.mli') diff --git a/lib/remoteCounter.mli b/lib/remoteCounter.mli new file mode 100644 index 0000000000..f17f1be3cf --- /dev/null +++ b/lib/remoteCounter.mli @@ -0,0 +1,14 @@ +(************************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(* 'a +type 'a installer = ('a getter) -> unit + +val new_counter : + 'a -> incr:('a -> 'a) -> build:('a -> 'b) -> 'b getter * 'b installer + -- cgit v1.2.3