[Iup-users] Lock/Unlock event queue processing

Antonio Scuri scuri at tecgraf.puc-rio.br
Mon Oct 3 11:30:15 GMT+3 2005


   Hi,

At 10:24 26/9/2005, Marcelo Ghelman wrote:
>My application have some sensitive routines that manipulates and 
>depends on global variables, so cannot be reentrant.
>Can I disable all Iup element callbacks at once, while performing 
>those routines?
>Or, better, lock the MainLoop event queue processing until each routine's end?

   There is no need for that. While you are inside a user rotine, the 
message loop is not processed. They will, only if you call 
IupLoopStep, or if you start another thread, or if you process in the 
idle callback.

Best,
scuri




More information about the iup-users mailing list