English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Q: How i can use Mutex and thread ..
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1998-12-23 (15:04)
From: Laurent Colombet <Laurent.Colombet@c...>
Subject: Q: How i can use Mutex and thread ..


  I have the following error :

        Objective Caml version 2.00

# let forks = Array.create 5 (Mutex.create());;
The external function `caml_mutex_new' is not available

  and i think that it's the same thing with ocmal 2.01 :

        Objective Caml version 2.01

# let forks = Array.create 5 (Mutex.create());;
Reference to undefined global `Mutex'

  could somebody help me ?

    thanks in advance


P.S. Examples of Ocaml programs using thread are welcome