in reply to Re: Perl threads - telling them urgent stuff
in thread Perl threads - telling them urgent stuff
There are API's at the OS level that allow software interupts (Win32 equiv. of signals) between threads. Specifically, the native API QueueUserAPC().
Unfortunately, trying to get this to interoperate with Perls threads layer is frustratingly hard. I've been trying for some time, but the only way I can see to make this work is to patch the perl sources, and that is hard. Harder than I have been able to master.
I actually think your LWP callback method is anything but kludgy, and is probably they way I would approach the problem.
The alternative mught be to dump threads and look at POE. I should say that I know nothing about this, but I've seen merlyn recommend it several times now, so it might be worth your while looking at that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Perl threads - telling them urgent stuff
by Weevil (Novice) on Oct 20, 2003 at 18:06 UTC | |
by BrowserUk (Patriarch) on Oct 20, 2003 at 21:39 UTC |