Lisp HUG Maillist Archive

Call lisp world from a C thread

Hello,

I wrote a callback function (with mp:define-foreign-callable) witch is
called from C in a high priority thread. This callback has to trig some
operations in CAPI panes or in some lisp processes.

May I use capi:apply-in-pane-process or mp:process-run-function in a
callback running in a C thread ? If not, what's the alternative ? Must I use
some more sophisticated ways to transfer informations and tasks from this
thread to the "lisp world", as process mailboxes ? Anyone has code examples
for this type of situation ?

Thanks

Denis

-------------------------------------------------------
Denis Pousseur
70 rue de Wansijn
1180 Bruxelles, Belgique

Tel : 32 (0)2 219 31 09
Mail :  denis.pousseur@compositeurs.be
Website : http://compositeurs.be/Pousseur
-------------------------------------------------------




Updated at: 2020-12-10 08:46 UTC