[gtk+osx] Re: Gtk-osx-developer digest, Vol 1 #140 - 1 msg
Status: Beta
Brought to you by:
jralls
From: Neal S. <n_s...@ch...> - 2005-07-21 03:33:41
|
>When user presses a button at my app, it starts a long operation. But I need >allow UI to work (update stat and other information). Linux version of my >app calls following code every few milliseconds: > >while(gtk_events_pending()) gtk_main_iteration(); > >That works on Linux but does not work with GTK-OSX. Can you advice anything? > >Looking forward to hearing from you soon, > >Best regards, >Igor > > > Sounds like you may want to use fork() and leave one process or thread in that loop and kill it when you no longer need it. An even better solution would be a fork() in conjunction with a semaphore. Best of luck, Neal |