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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-01-20 (19:37)
From: Alex Baretta <alex@b...>
Subject: Re: [Caml-list] C-threads & callbacks
Markus Mottl wrote:
> Hi,
> I'm currently interfacing a 3rd-party library that spawns threads
> to execute callbacks.  I would like those callbacks to be handled by
> OCaml-code, but have run into some issues here.

Just a thought: how about running two different processes which share 
relevant data through an mmapped file? The C-threads could communicate 
with the Ocaml world through this shared memory segment. I am not sure 
how much mileage you'll get out of this, but at least you would not have 
to rewrite the runtime system...


Baretta DE&IT
A division of Baretta SRL

tel. +39 02 370 111 55
fax. +39 02 370 111 54

Our technology:

The Application System/Xcaml (AS/Xcaml)

The FreerP Project