Leon Timmermans > threads-lite > threads::lite::tid

Download:
threads-lite-0.033.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  2
View/Report Bugs
Module Version: 0.033   Source  

NAME ^

threads::lite::tid - a threads::lite thread id

VERSION ^

Version 0.033

SYNOPSIS ^

This module represents a thread ID object. It provides a handle to a thread.

FUNCTIONS ^

send(@list)

Send a message to a thread. The message items may contain any data type that can be serialized by Storable (including coderefs).

id()

Get an opaque but primitive identifier for thread.

monitor()

Monitor the thread. This will cause the calling thread to get a notification of the thread's end. In case of a natural death it returns ('exit', 'normal', $id, @return_value), in case of an unnatural death it will contain ('exit', 'error', $id, $exception).

rpc(@args)

This is a utility function. It send prepended by the sending process' tid, and waits for a reply prepended by the tid, and returns it without the tid.

AUTHOR ^

Leon Timmermans, <leont at cpan.org>

BUGS ^

This is an early release, it is expected to have plenty of bugs.

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

You can also look for information at:

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.

syntax highlighting: