Re: ithreads and sockets

[email protected] (Elizabeth Mattijsen)
Newsgroups perl.ithreads
Message-ID <p05111b07bb77b56ce4c3@[192.168.56.4]>
At 08:40 -0500 8/31/03, Paul Archer wrote:
>...Or
>use Thread::Enqueue, and enqueue a value in one thread, then dequeue it in
>another.

Actually, that would be Thread::Queue (standard in the Perl 
distribution) or Thread::Queue::Any from CPAN (if you're interested 
in passing something more than a simple scalar value).

Also, beware that 5.8.0 has a severe memory leaking bug with shared 
arrays, which affects the operation of Thread::Queue.  Either get 
5.8.1 (but since that's not here yet, get one of the recent 
snapshots) or use a different implementation Thread::Conveyor from 
CPAN.


Liz
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.