Lloyd Bryant wrote:
> 1089 if (!(i & 0x3f)) {
> 1090 gcu_gtk_main_flush();
> 1091 }
>
> My problem: I've designed out the "for" loop that sets the value of "i".
>
> It looks like this code was supposed to run every 64th iteration of the
> loop. The question is why? Is this some sort of scheduler call? If so,
> how often should it be called?
As I wrote, this prevents that the GUI stalls. It dispatches queued events.
The magic number is just some good guess. On a fast system that might be
overkill, on a slow one (especially slow I/O) it might still be insufficient.
--
Christian
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel