__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
(**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Leroy and Damien Doligez, INRIA Rocquencourt *)
(* *)
(* Copyright 1996 Institut National de Recherche en Informatique et *)
(* en Automatique. *)
(* *)
(* All rights reserved. This file is distributed under the terms of *)
(* the GNU Lesser General Public License version 2.1, with the *)
(* special exception on linking described in the file LICENSE. *)
(* *)
(**************************************************************************)
(** Locks for mutual exclusion.
Mutexes (mutual-exclusion locks) are used to implement critical sections
and protect shared mutable data structures against concurrent accesses.
The typical use is (if [m] is the mutex associated with the data structure
[D]):
{[
Mutex.lock m;
(* Critical section that operates over D *);
Mutex.unlock m
]}
*)
type t
(** The type of mutexes. *)
val create : unit -> t
(** Return a new mutex. *)
val lock : t -> unit
(** Lock the given mutex. Only one thread can have the mutex locked
at any time. A thread that attempts to lock a mutex already locked
by another thread will suspend until the other thread unlocks
the mutex. *)
val try_lock : t -> bool
(** Same as {!Mutex.lock}, but does not suspend the calling thread if
the mutex is already locked: just return [false] immediately
in that case. If the mutex is unlocked, lock it and
return [true]. *)
val unlock : t -> unit
(** Unlock the given mutex. Other threads suspended trying to lock
the mutex will restart. *)
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| condition.cmi | File | 540 B | 0644 |
|
| condition.mli | File | 2.36 KB | 0644 |
|
| event.cmi | File | 1.22 KB | 0644 |
|
| event.mli | File | 3.66 KB | 0644 |
|
| libvmthreads.a | File | 19.64 KB | 0644 |
|
| mutex.cmi | File | 474 B | 0644 |
|
| mutex.mli | File | 2.09 KB | 0644 |
|
| stdlib.cma | File | 2.3 MB | 0644 |
|
| thread.cmi | File | 1.91 KB | 0644 |
|
| thread.mli | File | 6.01 KB | 0644 |
|
| threadUnix.cmi | File | 6.06 KB | 0644 |
|
| threadUnix.mli | File | 4.3 KB | 0644 |
|
| threads.cma | File | 66.39 KB | 0644 |
|
| unix.cma | File | 160.98 KB | 0644 |
|