in reply to Possible bug with threads

Follow pg's advice, your eval( ((threads->self)->join)); is completley bogus. The expression is circular. The last statement of &worker is the value it will return, it is trying to return it's return value via ->join ,which blocks until the thread returns - which it can't because it's blocking on the return value of itself.

I apologise for missing this node when I wrote that , but this code needs an evilevalectomy.

stat!

Replies are listed 'Best First'.
Re: Re: Possible bug with threads
by znu (Acolyte) on Dec 21, 2002 at 07:23 UTC
    Thanks. I replied to your other post, trying to explain what i'm trying to do. the link is at http://www.perlmonks.org/index.pl?parent=221386&title=Re%3A%20%5E3%3A%20Fun%20with%20threads&lastnode_id=221386&displaytype=display&type=superdoc&node=Comment%20on