1 (**************************************************************************)
2 (* *)
3 (* OCaml *)
4 (* *)
5 (* Xavier Leroy and Pascal Cuoq, INRIA Rocquencourt *)
6 (* *)
7 (* Copyright 1995 Institut National de Recherche en Informatique et *)
8 (* en Automatique. *)
9 (* *)
10 (* All rights reserved. This file is distributed under the terms of *)
11 (* the GNU Lesser General Public License version 2.1, with the *)
12 (* special exception on linking described in the file LICENSE. *)
13 (* *)
14 (**************************************************************************)
15
16 type t
17 external create: unit -> t = "caml_mutex_new"
18 external lock: t -> unit = "caml_mutex_lock"
19 external try_lock: t -> bool = "caml_mutex_try_lock"
20 external unlock: t -> unit = "caml_mutex_unlock"
21