Version française
Home     About     Download     Resources     Contact us    
Browse thread
Ocaml_multithreaded_shared_library
[ Home ] [ Index: by date | by threads ]
[ Search: ]

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

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?

Salutations

Matthieu

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)