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!In reply to Re: Possible bug with threads
by submersible_toaster
in thread Possible bug with threads
by znu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |