external unlock: Mutex.t -> unit = "caml_mutex_unlock"
(* Critical sections : -Mutex.lockdoesnotpollonleavingtheblockingsection since4.12. -Neverinline,toavoidtheoretically-possiblereorderingswith flambda. -InlinethecalltoMutex.unlocktoavoidpollinginbytecode.
(workaround to the lack of masking) *) let[@inline never] with_lock m ~scope = let () = Mutex.lock m (* BEGIN ATOMIC *) in match(* END ATOMIC *) scope () with
| (* BEGIN ATOMIC *) x -> unlock m ; (* END ATOMIC *) x
| (* BEGIN ATOMIC *) exception e -> unlock m ; (* END ATOMIC *) raise e
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-09-28)
¤
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.