Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^5: How can I force thread switching?

by BrowserUk (Pope)
on Sep 30, 2013 at 10:44 UTC ( #1056326=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    my @threads = map threads->new( \&processrefsthread, $Q ), 1 .. $T;
  2. or download this
    sub threadProc {
        my $code = shift;
    my @threads = map threads->new( \&threadProc, \&processrefsthread, $Q 
    +), 1 .. $T;
  3. or download this
    sub processrefsthread {
        my $Q = shift;
        tprint 'Ending';
  4. or download this
    Useless use of division (/) in void context at C:\test\1056140-buk.p
    ; retrying
    [1] Starting
  5. or download this
    my $Q - ...;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1056326]
[Corion]: Hmm - is anybody aware of a "protocol-only" HTTP module? I'd like to teach Prima non-blocking HTTP ideally without using threads, but that means reimplementing/ rewriting something like HTTP::Tiny (except asynchronous) or AnyEvent::HTTP
[Corion]: Ideally, the HTTP state machine but with a way to feed it HTTP data whenever I get it instead of it actively doing stuff.
[Corion]: Now that I talk about this, maybe Net::Inspect::L7:: HTTP would be the right kind of thing for the responses at least.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2016-12-07 15:08 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (128 votes). Check out past polls.