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
d9bb3666
MB
1package Thread;
2require Exporter;
3require DynaLoader;
52e1cb5e
JH
4use vars qw($VERSION @ISA @EXPORT);
5
6$VERSION = "1.0";
7
d9bb3666 8@ISA = qw(Exporter DynaLoader);
8f4f90ac 9@EXPORT_OK = qw(yield cond_signal cond_broadcast cond_wait async);
734689b1
MB
10
11#
12# Methods
13#
14
15#
16# Exported functions
17#
18sub async (&) {
19 return new Thread $_[0];
20}
d9bb3666 21
458fb581
MB
22sub eval {
23 return eval { shift->join; };
24}
25
d9bb3666
MB
26bootstrap Thread;
27
d9bb3666 281;