Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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...

Alex

-- 
*********************************************************************
http://www.barettadeit.com/
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)
<http://www.asxcaml.org/>

The FreerP Project
<http://www.freerp.org/>