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 |