Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Re: Thread::Queue and Memory

by petesmiley (Friar)
on Feb 21, 2003 at 02:49 UTC ( [id://237321] : note . print w/replies, xml ) Need Help??

in reply to Re: Thread::Queue and Memory
in thread Thread::Queue and Memory

Doh! Slaps head. Of course.

My confusion was somewhat caused by the examples listed in the tutorials. Not only that, but the Thread::Queue POD aludes to using "threads" not "Threads".

Thanx Chief

Update: Now that I've had time to think about it, it's not just locking I need, its cond_wait() and cond_signal(). Which is why I resorted to Thread::Queue fo simplification in the first place.

If you look at the POD for Thread::Queue it refers to the ithreads implimentation. Not the old perl threads implimentation.

  • So, I either don't understand Thread::Queue properly and it is supposed to work with ithreads, and the docs on the old Threads POD needs to be updated.
  • Or, Thread::Queue is not supposed to work with ithreads and there is something fuzzy with the docs and there needs to be a clarification.
  • Or, there is something actually wrong with Thread::Queue, it is supposed to work with ithreads, and the docs for the old Threads implimentation needs to be fixed.
Somehow, I think that last little line in the old Threads POD is not up to date according to the current documentation for perl 5.8.