in reply to Hanging Threads
Your code as is, but with the Net::SMTP stuff commented out and replaced by a couple of sleeps, functions perfectly. Ie. The threads start, read the work items off the queue, terminate their loops and exit. And the joins all complete successfully and cleanly. Under 5.8.6 and 5.8.8.
So, maybe Net::SMTP isn't thread safe? Try starting one thread and see if that completes successfully?
If one works, try starting 2.
If you post again, properly indented code would be good.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hanging Threads
by WalkingZero (Sexton) on Aug 18, 2007 at 20:38 UTC | |
by BrowserUk (Patriarch) on Aug 18, 2007 at 20:52 UTC | |
by WalkingZero (Sexton) on Aug 18, 2007 at 21:38 UTC | |
by BrowserUk (Patriarch) on Aug 18, 2007 at 21:52 UTC | |
by WalkingZero (Sexton) on Aug 18, 2007 at 22:06 UTC | |
|