Re: please help with ithreads

2006-03-06 Thread Al Tobey
On Wed, 2006-03-01 at 14:36 -0800, Khai Doan wrote: > Can someone see anything wrong with my code? Sometimes it failed short > when the list of urls to check is long. Is ithread stable ? Here is > the output of perl -V : The problem is in Socket.pm. I ran into this doing almost the exact sa

RE: done-method or similar for iThreads ?

2006-03-06 Thread Elizabeth Mattijsen
You might to check out Thread::Running on CPAN, which is based on Thread::Exit, which you also might find interesting. At 8:21 AM -0700 3/6/06, Jerry D. Hedden wrote: First of all, the 'Thread' module is defunct. Use the 'threads' module instead. There is no ->done() method. You have to simu

RE: done-method or similar for iThreads ?

2006-03-06 Thread Jerry D. Hedden
First of all, the 'Thread' module is defunct. Use the 'threads' module instead. There is no ->done() method. You have to simulate it using a shared variables to convey thread status back to the parent thread. Here is a working example that should contain all the elements you need: #!/usr/bin/p

done-method or similar for iThreads ?

2006-03-06 Thread kalbfuss
Hi, I need some help about a done-method wordaround with ithreads. Currently i am implementing a script which starts some ithreads parallel until a maximum count is reached. Then, when one of these threads are done, start the next thread. But what is the best way to do this ? perldoc.org: The don