Perl interpreter-based threads

Edit Package perl-threads
http://search.cpan.org/dist/threads/

Since Perl 5.8, thread programming has been available using a model called
_interpreter threads_ which provides a new Perl interpreter for each
thread, and, by default, results in no data or state information being
shared between threads.

(Prior to Perl 5.8, _5005threads_ was available through the 'Thread.pm'
API. This threading model has been deprecated, and was removed as of Perl
5.10.0.)

As just mentioned, all variables are, by default, thread local. To use
shared variables, you need to also load the threads::shared manpage:

use threads;
use threads::shared;

When loading the threads::shared manpage, you must 'use threads' before you
'use threads::shared'. ('threads' will emit a warning if you do it the
other way around.)

It is strongly recommended that you enable threads via 'use threads' as
early as possible in your script.

If needed, scripts can be written so as to run on both threaded and
non-threaded Perls:

Refresh
Refresh
Source Files
Filename Size Changed
cpanspec.yml 0000000468 468 Bytes
perl-threads.changes 0000003792 3.7 KB
perl-threads.spec 0000001987 1.94 KB
threads-2.21.tar.gz 0000113446 111 KB
Latest Revision
Dirk Stoecker's avatar Dirk Stoecker (dstoecker) accepted request 568473 from Stephan Kulow's avatar Stephan Kulow (coolo) (revision 10)
automatic update
Comments 0
openSUSE Build Service is sponsored by