From: Foo JH <jhf...@ex...> - 2006-10-03 09:45:37
|
Hello Sergei, Thanks for the reply. I don't know if this will work. The abstraction is so clean I worry if I can control the sharing of variable at all. And to answer your question: Perl doc says that threading will duplicate ALL variables in the main thread. Sounds quite bad to me. Does any1 else do threading on wxPerl? Sergei Steshenko wrote: > --- 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 > > ------------------------------------------------------------------------- > 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 > |