use Scalar::Util qw(reftype refaddr blessed);
-our $VERSION = '1.48'; # Please update the pod, too.
+our $VERSION = '1.47'; # Please update the pod, too.
my $XS_VERSION = $VERSION;
$VERSION = eval $VERSION;
=head1 VERSION
-This document describes threads::shared version 1.48
+This document describes threads::shared version 1.47
=head1 SYNOPSIS
/*
* The shared things need an interpreter to live in ...
*/
-static PerlInterpreter *PL_sharedsv_space; /* The shared sv space */
+PerlInterpreter *PL_sharedsv_space; /* The shared sv space */
/* To access shared space we fake aTHX in this scope and thread's context */
/* Bug #24255: We include ENTER+SAVETMPS/FREETMPS+LEAVE with
#endif
} recursive_lock_t;
-static recursive_lock_t PL_sharedsv_lock; /* Mutex protecting the shared sv space */
+recursive_lock_t PL_sharedsv_lock; /* Mutex protecting the shared sv space */
void
recursive_lock_init(pTHX_ recursive_lock_t *lock)
return (0);
}
-const static MGVTBL sharedsv_userlock_vtbl = {
+MGVTBL sharedsv_userlock_vtbl = {
0, /* get */
0, /* set */
0, /* len */
the shared thing.
*/
-const static MGVTBL sharedsv_scalar_vtbl; /* Scalars have this vtable */
-const static MGVTBL sharedsv_array_vtbl; /* Hashes and arrays have this
+extern MGVTBL sharedsv_scalar_vtbl; /* Scalars have this vtable */
+extern MGVTBL sharedsv_array_vtbl; /* Hashes and arrays have this
- like 'tie' */
-const static MGVTBL sharedsv_elem_vtbl; /* Elements of hashes and arrays have
+extern MGVTBL sharedsv_elem_vtbl; /* Elements of hashes and arrays have
this _AS WELL AS_ the scalar magic:
The sharedsv_elem_vtbl associates the element with the array/hash and
the sharedsv_scalar_vtbl associates it with the value
}
#endif
-const static MGVTBL sharedsv_scalar_vtbl = {
+MGVTBL sharedsv_scalar_vtbl = {
sharedsv_scalar_mg_get, /* get */
sharedsv_scalar_mg_set, /* set */
0, /* len */
return (0);
}
-const static MGVTBL sharedsv_elem_vtbl = {
+MGVTBL sharedsv_elem_vtbl = {
sharedsv_elem_mg_FETCH, /* get */
sharedsv_elem_mg_STORE, /* set */
0, /* len */
return (0);
}
-const static MGVTBL sharedsv_array_vtbl = {
+MGVTBL sharedsv_array_vtbl = {
0, /* get */
0, /* set */
sharedsv_array_mg_FETCHSIZE,/* len */