Lisp HUG Maillist Archive

Multiprocessing

Hello,

When i run some body of code in a process made width PROCESS-RUN-FUNCTION,
the order of the operations becomes incorrect, as if the codes are run in
parallel. Thus the result is completely strange for me...

I did something like this

(defmacro with-busy-buton (&body)
    `(progn
          (make-busy-button-busy)
           (mp:process-run-function ³Busy² nil
                 #¹(lambda ()
                         (mp: process-wait-with-timeout ³² 0.05)
                          ,.body
                          (make-busy-button-ready))))))

This is to give a chance to a dialog-item (named ³busy-button²) to be
graphically updated BEFORE the execution of BODY (without multiprocessing
the button is updated AFTER...).

Is it a function or macro that assure the execution of codes (in a same
process) serially ?

I¹m very new to multiprocessing, thanks for some help !

Denis


----------------------------------------------------
Denis Pousseur
6 clos du Drossart
1180 Bruxelles, Belgique

Mail :  denis.pousseur@compositeurs.be
Website : http://compositeurs.be
----------------------------------------------------




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