NAME

Thread::IID - Perl extension for obtaining unique interpreter IDs

VERSION

version 0.010_001

SYNOPSIS

use Thread::IID ':all';

print "Hi, I am interpreter #" . get_interpreter_id();

DESCRIPTION

This module provides a single function for identifying Perl interpreter instances.

EXPORT

None by default. The following function is avaliable:

get_interpreter_id()

Returns an ID for the current Perl interpreter instance.

Where multiple interpreters have been created to run in threads of the current process the IDs returned will be different for each interpreter, regardless of the whether the interpreters are being run on distinct threads or not.

AUTHOR

Original code by ikegami at PerlMonks. Packaged by Roger Crew, <crew@cs.stanford.edu>

COPYRIGHT AND LICENSE

Copyright (C) 2011 by Roger Crew

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.