Stephane Peiry <[EMAIL PROTECTED]> wrote: > The only issue I see atm is if parrot wants to call the callback it- > self while in the "waiting for callback loop", mean it would run into > some race conditions if for some reasons parrot invokes the callback, > and somebody triggers the callback via gtk..?
If the run loop is calling the callback too, you have to provide synchronization. > Is this dealt with explicitly? ie. parrot executing a function (the > callback) in a single go? No. A callback or any other event function can be interrupted in the current implementation. > ... Or is it meant to be up to the programmer, > like "you shouldnt call it yourself", or lock your data or else? Yep. > Thanks, > Stéphane leo