Re: using threads
| From: | Alan Knowles | Date: | Tue, 16 Oct 2001 07:35:05 +0000 |
| Subject: | Re: using threads | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-288@lists.php.net to get a copy of this message | ||
also consider using
while (gtk::events_pending()) gtk::main_iteration();
in loops of code that otherwise would hang the interface..
other things to consider are using non-blocking streams for tcp connections
not reading too much data in freads - and calling the above inbetween..
execute exec statements with background processing (somecommand&)
freeze widgets like trees when adding a large number of items.. - $tree->freeze();
the only snag I have seen so far is that libcurl 'connect' will freeze untill it is successful or fails.. -
regards
alan
Markus Fischer wrote:
Or, what I missed, turn the Gtk Mainloop inside out and iterate it manually with Gtk::main_iteration(); . - Markus