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
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-02-25 (08:09)
From: matthieu.dubuget@libertysurf.fr <matthieu.dubuget@l...>
Subject: Ocaml_multithreaded_shared_library

I did one multithreaded Caml library.

The API allow to:
- create one thread
- stop it
- get information from it
- ...

When called from an Ocaml test program, no problem:
everything works as expected.

My naive idea was to turn it into a shared library (well, a
DLL because the real project is targeted on windows OS, but
the problem is the same on linux), and call it from another
language. Let say at least for tests.

But it does not work because the Ocaml thread seems to stop
working when the function that created it returns.

Is this way to work possible or have I to change my idea?



PS Sorry for the footer added by my provider: I'm registered
to Caml-list with my personnal address, but I'm at work now...

************************ ADSL JUSQU'A 8 MEGA + 3 MOIS DE TELEPHONE GRATUIT ************************
L'ultra haut débit à 15EUR/mois seulement ! Et vous téléphonez gratuitement en France vers les postes fixes,
hors numéros spéciaux pendant 3 mois.
Pour profiter de cette offre exceptionnelle, cliquez ici : http://register.tiscali.fr/adsl/  (voir conditions sur le site)