Re: pthreads - code thoughts....
| From: | Alan Knowles | Date: | Thu, 06 Sep 2001 03:13:57 +0000 |
| Subject: | Re: pthreads - code thoughts.... | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-51@lists.php.net to get a copy of this message | ||
> At 02:38 AM 9/6/01 +0000, Alan Knowles wrote:
> >What happens when one of those events pending is a signal to call another
> >php function?
> >
> >eg. user expands one tree, while that is loading, he expands another one...
>
> Your processing function will need to be re-entrant.
>
I think I get this now....
the
while (gtk::events_pending())
gtk::main_iteration()
inside the dir listing etc. will see if any calls are pending. - if they are, it will process them,
when they are finished it will carry on.
so user expands tree:
do a dir listing, and start adding the data (meanwhile calling events pending..)
while this is happending, the user expands a new tree, - this process will become the active one,
eg. the old expansion will appear to pause untill the new one is completed...
in effect acting like multitasking, however giving the users 'last' action priority in the
queue...
> -Andrei
>
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, e-mail: php-gtk-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-gtk-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>