From: Sergei S. <ser...@ya...> - 2006-10-03 05:01:08
|
--- Foo JH <jhf...@ex...> wrote: > Hi all, > > I'm trying to write an app that does work in the background, and the gui > will show any updates based on the background job. > > The thing is, Perl's threading duplicates all variables. I wonder how in > a new thread, I can continue to work on the control objects in the main > thread. > > Any best practice in this area is appreciated. > > Thanks. > > ------------------------------------------------------------------------- > 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 > _______________________________________________ > wxperl-users mailing list > wxp...@li... > https://lists.sourceforge.net/lists/listinfo/wxperl-users > Does Perl threading also duplicate global variables ? Have you considered subs::parallel - to be found as http://search.cpan.org/~nilsonsfj/subs-parallel-0.07/lib/subs/parallel.pm ? The latter, I believe, hides threads from you, so you just have to think how to synchronize the subroutines. --Sergei. Applications From Scratch: http://appsfromscratch.berlios.de/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |