-
package threads::shared;
use strict;
our %shared;
-
sub cond_wait_disabled { return @_ };
sub cond_signal_disabled { return @_};
sub cond_broadcast_disabled { return @_};
}
}
-
package threads::shared::sv;
use base 'threads::shared';
package threads::shared::hv;
use base 'threads::shared';
-
bootstrap threads::shared $VERSION;
__END__
=head1 DESCRIPTION
- This modules allows you to share() variables. These variables will then be shared across different threads (and pseudoforks on win32). They are used together with the threads module.
+This modules allows you to share() variables. These variables will
+then be shared across different threads (and pseudoforks on
+win32). They are used together with the threads module.
=head2 EXPORT
=head1 AUTHOR
-Artur Bergman <lt>artur at contiller.se<gt>
+Artur Bergman E<lt>artur at contiller.seE<gt>
threads is released under the same license as Perl
L<perl> L<threads>
=cut
-
-
-
-
package threads;
use 5.7.2;
'==' => \&equals,
'fallback' => 1;
-
#use threads::Shared;
require Exporter;
use Devel::Peek;
-
our @ISA = qw(Exporter DynaLoader);
our %EXPORT_TAGS = ( all => [qw()]);
bootstrap threads $VERSION;
-
# Preloaded methods go here.
1;
=head1 SYNOPSIS
-
use threads;
sub start_thread {
print "Thread started\n";
}
-
my $thread = threads->new("start_thread","argument");
$thread->new(sub { print "I am a thread"},"argument");
thread->tid();
-
-
=head1 DESCRIPTION
-Perl 5.6 has something called interpreter threads, interpreter threads are built on MULTIPLICITY and allows for several different perl interpreters to run in different threads. This has been used in win32 perl to fake forks, it has also been available to people embedding perl.
+Perl 5.6 has something called interpreter threads, interpreter threads
+are built on MULTIPLICITY and allows for several different perl
+interpreters to run in different threads. This has been used in win32
+perl to fake forks, it has also been available to people embedding
+perl.
=over
=item new, function, LIST
-This will create a new thread with the entry point function and give it LIST as parameters.
-It will return the corresponding threads object.
+This will create a new thread with the entry point function and give
+it LIST as parameters. It will return the corresponding threads
+object.
=item $threads->join
=head1 AUTHOR and COPYRIGHT
-Artur Bergman <lt>artur at contiller.se<gt>
+Artur Bergman E<lt>artur at contiller.seE<gt>
threads is released under the same license as Perl
Thanks to
-Richard Soderberg <lt>rs at crystalflame.net<gt>
-Helping me out tons, trying to find reasons for races and other wierd bugs!
+Richard Soderberg E<lt>rs at crystalflame.netE<gt>
+Helping me out tons, trying to find reasons for races and other weird bugs!
-Simon Cozens <lt>simon at brecon.co.uk<gt>
-Being there to answer zillions of annoying questions
+Simon Cozens E<lt>simon at brecon.co.ukE<gt>
+Being there to answer zillions of annoying questions
-Rocco Caputo <lt>troc at netrus.net<gt>
+Rocco Caputo E<lt>troc at netrus.netE<gt>
-Vipul Ved Prakash <lt>mail at vipul.net<gt>
+Vipul Ved Prakash E<lt>mail at vipul.netE<gt>
Helping with debugging.
please join perl-ithreads@perl.org for more information
L<perl>, L<perlcall>, L<perlembed>, L<perlguts>
=cut
-
-
-
-