Leon Timmermans > threads-posix > threads::posix

Download:
threads-posix-0.002.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.002   Source  

NAME ^

threads::posix - more POSIX correct threads

VERSION ^

version 0.002

SYNOPSIS ^

 my $thread = thread::posix->create(sub { ... });
 $thread->kill(SIGALRM);

DESCRIPTION ^

This module extends threads to provide behaviors that are more conformant to what POSIX prescribes. You should realize that this doesn't in any way change the threads themselves, just how you intereract with them. Everything not described here should work exactly the same as in threads.pm.

METHODS ^

kill

Send a signal to a thread. Unlike what threads.pm does, this is a real OS level signal that will interact with various syscalls the way you expect them to, not a poke into the deferred signal handling system.

AUTHOR ^

Leon Timmermans <leont@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by Leon Timmermans.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: