NAME

threads::posix - more POSIX correct threads

VERSION

version 0.003

SYNOPSIS

use threads::posix;
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.

If this module is used with the -global option it will monkey-patch 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.