Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^3: [] - not threads-safe?

by Anonymous Monk
on Aug 20, 2013 at 22:36 UTC ( #1050260=note: print w/replies, xml ) Need Help??

in reply to Re^2: [] - not threads-safe?
in thread [] - not threads-safe?

use Thread; is a dead duck since 5.8.0.

Yes, but 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

Replies are listed 'Best First'.
Re^4: [] - not threads-safe?
by BrowserUk (Pope) on Aug 20, 2013 at 23:12 UTC
    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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1050260]
and the rats come out to play...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2018-06-18 16:03 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (110 votes). Check out past polls.