Thread::Queue::AnyThread-safe queues for any data-structure | |
Download |
Thread::Queue::Any Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Elizabeth Mattijsen
- Publisher web site:
- http://search.cpan.org/~elizabeth/
Thread::Queue::Any Tags
Thread::Queue::Any Description
Thread::Queue::Any is a Perl module that only functions if threading has been enabled when building Perl, or if the "forks" module has been installed on an unthreaded Perl.SYNOPSIS use Thread::Queue::Any; my $q= Thread::Queue::Any->new; $q->enqueue("foo", , {"zoo"}); my ( $foo, $bar, $zoo )= $q->dequeue; my ( $foo, $bar, $zoo )= $q->dequeue_dontwait; my ( $iffoo, $ifbar, $ifzoo)= $q->dequeue_keep; my $left= $q->pending; # specify class with "freeze" and "thaw" methods use Thread::Queue::Any serializer => 'Storable'; # specify custom freeze and thaw subroutines use Thread::Queue::Any freeze => \&solid, thaw => \&liquid;Product's homepage
Thread::Queue::Any Related Software