(************************************************************************) (* * The Rocq Prover / The Rocq 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) *) (************************************************************************)
(* As of OCaml 4.01.0 input_value and input do not quite work well *withthreads.Thesymptomisthefollowing.Twothreads,each *ofthemblockedonaread(ondifferentchannels).Oneisnot *wokenupevenifdataisavailable.Whentheotheronegetsdata *thenthestuckoneiseventuallyunblockedtoo.Unix.selectwith
* an unbounded wait has the same problem. *)
(* Use only the following functions on the channel *) type thread_ic val prepare_in_channel_for_thread_friendly_io : in_channel -> thread_ic
val thread_friendly_input_value : thread_ic -> 'a val thread_friendly_read :
thread_ic -> Bytes.t -> off:int -> len:int -> int val thread_friendly_really_read :
thread_ic -> Bytes.t -> off:int -> len:int -> unit val thread_friendly_really_read_line : thread_ic -> string
(* Wrapper around Thread.create that blocks signals such as Sys.sigalrm (used
* for Timeout *) val create : ('a -> 'b) -> 'a -> Thread.t
(* Atomicmutexlocktakenfromhttps://gitlab.com/gadmm/memprof-limits/-/blob/master/src/thread_map.ml#L23-34
*) val with_lock : Mutex.t -> scope:(unit -> 'a) -> 'a
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-09-29)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.