Lines Matching defs:threads
1 package threads::shared;
16 $threads::shared::threads_shared = 1;
19 $threads::shared::clone_warn = undef;
22 if ($Config::Config{'useithreads'} && $threads::threads) {
24 XSLoader::load('threads::shared', $XS_VERSION);
30 # exist at all if 'threads' is not loaded successfully.
51 if ($threads::threads) {
70 sub threads::shared::tie::SPLICE
99 # 3. Not running 'threads'.
100 return $item if (! ref($item) || is_shared($item) || ! $threads::threads);
163 if (! defined($threads::shared::clone_warn)) {
165 } elsif ($threads::shared::clone_warn) {
195 threads::shared - Perl extension for sharing data structures between threads
199 This document describes threads::shared version 1.68
203 use threads;
204 use threads::shared;
246 to share variables across different threads (and pseudo-forks on Win32). It
247 is used together with the L<threads> module.
258 Note that if this module is imported when L<threads> has not yet been loaded,
327 $threads::shared::clone_warn = 1;
332 $threads::shared::clone_warn = 0;
409 there are multiple threads C<cond_wait>ing on the same variable, all but one
464 If there are no threads blocked in a C<cond_wait> on the variable, the signal
474 { no warnings 'threads'; cond_signal($foo); }
479 C<cond_broadcast>, though, will unblock B<all> the threads that are blocked in
486 L<threads::shared> exports a version of L<bless()|perlfunc/"bless REF"> that
487 works on shared objects such that I<blessings> propagate across threads.
501 threads->create(sub {
521 L<threads::shared> is designed to disable itself silently if threads are not
525 If you want access to threads, you must C<use threads> before you
526 C<use threads::shared>. L<threads> will emit a warning if you use it after
527 L<threads::shared>.
605 use threads;
606 use threads::shared;
609 # If ref is shared, use threads::shared's internal ID.
648 to: L<http://rt.cpan.org/Public/Dist/Display.html?Name=threads-shared>
652 threads::shared on MetaCPAN:
653 L<https://metacpan.org/release/threads-shared>
656 L<https://github.com/Dual-Life/threads-shared>
658 L<threads>, L<perlthrtut>
660 L<http://www.perl.com/pub/a/2002/06/11/threads.html> and
661 L<http://www.perl.com/pub/a/2002/09/04/threads.html>
663 Perl threads mailing list:
678 threads::shared is released under the same license as Perl.