in reply to Re: How to wait for events, and not lose any, while processing them ?
in thread How to wait for events, and not lose any, while processing them ?
This is great, textbook example of handling events with additional thread, thanks.
The problem however, is that the 'processEvents' CAUSES new events to be generated, thus, without echo-filter
while ($keepOnWatching) { if (ThisIsNotMyOwnEcho()) {# echo-filter processEvents(); } };
this solution changes 1-cpu burning into multiple-cores burning program.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How to wait for events, and not lose any, while processing them ?
by BrowserUk (Patriarch) on Jan 27, 2009 at 09:32 UTC |
In Section
Seekers of Perl Wisdom