This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
AIX patch (including Configure support for {sched,pthread}_yield,
[perl5.git] / ext / Thread / Thread.pm
... / ...
CommitLineData
1package Thread;
2require Exporter;
3require DynaLoader;
4use vars qw($VERSION @ISA @EXPORT);
5
6$VERSION = "1.0";
7
8@ISA = qw(Exporter DynaLoader);
9@EXPORT_OK = qw(yield cond_signal cond_broadcast cond_wait async);
10
11#
12# Methods
13#
14
15#
16# Exported functions
17#
18sub async (&) {
19 return new Thread $_[0];
20}
21
22sub eval {
23 return eval { shift->join; };
24}
25
26bootstrap Thread;
27
281;