Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: [FCGI.pm] - not threads-safe?

by BrowserUk (Pope)
on Aug 20, 2013 at 21:29 UTC ( #1050249=note: print w/ replies, xml ) Need Help??


in reply to Re: [FCGI.pm] - not threads-safe?
in thread [FCGI.pm] - not threads-safe?

This:

use Thread;

is a dead duck since 5.8.0.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re^2: [FCGI.pm] - not threads-safe?
Re^3: [FCGI.pm] - not threads-safe?
by Anonymous Monk on Aug 20, 2013 at 22:36 UTC

    use Thread; is a dead duck since 5.8.0.

    Yes, but https://metacpan.org/module/Thread Ricardo SIGNES / perl-5.18.1 / Thread says its been reworked using threads:: for old code

    The working pattern for the OP is following the same pattern., and the code uses perl_mutex

      Thread says its been reworked using threads:: for old code

      Problem: Code designed to use Perl 5005threads isn't compatible with iThreads without considerable rework, if then.

      Monkey patching Thread to be an alias for threads in the vain and frankly naive hope that it would allow code written to use the former to magically work was ... well; naive at best. Thread should have been consigned to the dustbin of history along with pretty much everything in that namespace, excepting Thread::Queue which should have been moved into the threads namespace.

      So, the question is, does the presence of that single file in the FCGI distribution, that uses a long obsolete version of perl threading that never worked, and despite the fact that threading isn't mention in either the POD or the readme; and the only mention of threading in the C code is the use of a C thread to provide asynchronous IO for stdin; constitute a statement of support for the use of iThreads with FCGI?

      You know the answer to that as well as I do. Which makes your contribution in this thread one big red herring guaranteed to waste people's time.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

        ...

        I don't see how it could possibly waste anyone's time :) if anything it makes it clear that what the OP is doing won't work without a few more edits of FCGI.XL and possibly others

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1050249]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2014-07-10 12:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (209 votes), past polls