[Openmcl-devel] Asynchronous callback made from real-time thread

Letz Stephane letz at rd.grame.fr
Fri May 30 02:15:12 PDT 2003


Hi,

We are trying to interface a Midi package (MidiShare : 
www.grame.fr/MidiShare) with OpenMCL. Using MidiShare allows a Lisp 
program to access a full Midi API : receive, send  Midi events, tasks 
management...

For real-time handling of incoming Midi events, there is a safe 
solution that consist in doing polling on the incoming event fifo in 
a Lisp thread.

We tried to implement a more real-time way by calling back the Lisp 
code directly from the real-time Midi thread using a lisp callback 
defined with defcallback.

This seems to almost work on 0.13.5 version but crash after some 
time. It crash immediately with the 0.14 alpha version.

Is it possible to implement this kind of asynchronous callback made 
from real-time thread in OpenMCL? Is there any special issue to 
consider : thread synchronization, interaction with the garbage 
collector...


Thanks

Best Regards

Stephane Letz

_______________________________________________
Openmcl-devel mailing list
Openmcl-devel at clozure.com
http://clozure.com/cgi-bin/mailman/listinfo/openmcl-devel



More information about the Openmcl-devel mailing list