Hi,
Wx::Perl::SimpleThread was a basic prototype written to answer a
question about Wx::Perl::ProcessStream - that was: could there be a
forking or threaded alternative like Wx::Perl::ProcessStream.
As such, it isn't production code - very Alpha. Mainly, the method of
starting worker threads and the use of a polling timer needs some
thought and a re-write. Also, the code actually ends up with nothing Wx
specific in it so the name is probably unsuitable.
However, the tests do show information being passed to and from worker
threads and being handled in main thread as Wx::Event. As the worker
threads don't load Wx, the footprint is reduced somewhat.
If you wished to fashion something working from the code, the basic
client <-> handler concept is sound, I think. My thoughts on a rewrite
for thread initialisation and replacing the timer were to properly track
the 'tid' or thread id and kick start queue reading using thread
signals. ( See threads pod).
Hope it helps.
Mark
On 20/12/2011 12:09, Christopher Händler wrote:
Hey, i search a POD or Tutorial for the Wx::Perl::SimpleThread on:
http://code.google.com/p/wxperlsimplethread/source/browse/#svn%2Ftrunk%2Flib%2FWx%2FPerl
Is it possible with Wx::Perl::SimpleThread to communicate from worker
thread to main thread?
Or any other ways... with HowTo :-)
Thanks for replay
XimPerl