You haven't used threads::shared in the current scope (package)
Isn't that accomplished by using use Module::Load::Conditional qw[can_load];?
You always have to pass a reference to threads::shared::share(); unless you disable the prototype
Disable the prototype? I'm not sure what you mean by that. Explicitly using &share($gnWarning) makes no difference, if that's what you mean.
If you know of any way to configure a program to use threads based on the perl executable being compiled with it, and not use it otherwise, other than the method I'm trying, I'd be interested to know.
In reply to Re^2: Problem conditionally making variables shared if using threads
by billgdev
in thread Problem conditionally making variables shared if using threads
by billgdev
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |