package coq-core

  1. Overview
  2. Docs
The Coq Proof Assistant -- Core Binaries and Tools

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.20.1.tar.gz
md5=0cfaa70f569be9494d24c829e6555d46
sha512=8ee967c636b67b22a4f34115871d8f9b9114df309afc9ddf5f61275251088c6e21f6cf745811df75554d30f4cebb6682f23eeb2e88b771330c4b60ce3f6bf5e2

doc/coq-core.stm/AsyncTaskQueue/index.html

Module AsyncTaskQueueSource

Sourceval async_proofs_flags_for_workers : string list ref

This file provides an API for defining and managing a queue of tasks to be done by external workers.

A queue of items of type task is maintained, then for each task, a request is generated, then sent to a worker using marshalling.

The workers will then eventually return a result, using marshalling again: ____ ____ ____ ________ | T1 | T2 | T3 | => request => | Worker | |____|____|____| <= response <= |________| | Master Proc. | \--------------/

Thus request and response must be safely marshallable.

Operations for managing the task queue are provide, see below for more details.

Sourcemodule type Task = sig ... end

The Task module type defines an abstract message-processing queue.

Sourcetype cancel_switch = bool ref

cancel_switch to be flipped to true by anyone to signal the task is not relevant anymore. When the STM performs an undo/edit-at, it crawls the document and flips these flags (the Qed node carries a pointer to the flag IIRC).

Sourcemodule MakeQueue (T : Task) () : sig ... end

Client-side functor. MakeQueue T creates a task queue for task T

Sourcemodule MakeWorker (_ : Task) () : sig ... end

Server-side functor. MakeWorker T creates the server task dispatcher.

Sourceexception RemoteException of Pp.t

convenience exception to marshall to master

OCaml

Innovation. Community. Security.