in reply to Re: Problem conditionally making variables shared if using threads
in thread Problem conditionally making variables shared if using threads
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Problem conditionally making variables shared if using threads
by BrowserUk (Patriarch) on Feb 18, 2015 at 22:33 UTC | |
by tye (Sage) on Feb 19, 2015 at 02:16 UTC | |
by tye (Sage) on Feb 19, 2015 at 04:13 UTC |