actually means free (solaris for example :)
Fixes bug #16681
p4raw-id: //depot/perl@19240
use ExtUtils::testlib;
use strict;
-BEGIN { print "1..11\n" };
+BEGIN { print "1..12\n" };
use threads;
use threads::shared;
} else {
skip("\$0 check: only on Linux");
}
+
+{
+ my $t = threads->new(sub {});
+ $t->join;
+ my $x = threads->new(sub {});
+ $x->join;
+ eval {
+ $t->join;
+ };
+ my $ok = 0;
+ $ok++ if($@ =~/Thread already joined/);
+ ok($ok, "Double join works");
+}
/* We have finished with it */
thread->state |= PERL_ITHR_JOINED;
MUTEX_UNLOCK(&thread->mutex);
- sv_unmagic(SvRV(obj),PERL_MAGIC_shared_scalar);
+
return retparam;
}
return (AV*)NULL;