NAME
threads::lite::list - Threaded list utilities
VERSION
Version 0.034
SYNOPSIS
This module implements some parallel list utilities op top of threads::lite.
FUNCTIONS
parallel_map { block } $options, @elements
map a list using multiple threads. $options is a hashref whose keys are like in new
.
parallel_grep { block } $options, @elements
grep a list using multiple threads. $options is a hashref whose keys are like in new
.
CLASS METHODS
A parallel list processing object can be created if you want to reuse your filter with other arguments.
new(%options)
Create a new parallel list processing object. It takes three named arguments.
code
A reference to the piece of code that should be executed, or it's name. Note that if a name is given, it's containing module must be loaded using
modules
.modules
Modules that must be loaded be for the mapping or grepping.
threads
The number of threads you want to use to do the mapping. The default is currently 4, an arbitrary number that may change in the future.
INSTANCE METHODS
map(@elements)
Map elements in a parallel manner.
grep(@elements)
Grep elements in a parallel manner.
AUTHOR
Leon Timmermans, <leont at cpan.org>
BUGS
This is an early development release, and is expected to be buggy and incomplete.
Please report any bugs or feature requests to bug-threads-lite at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=threads-lite. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc threads::lite::list
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
COPYRIGHT & LICENSE
Copyright 2009, 2010 Leon Timmermans, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.