in reply to How to make thread-save data on C API
See SvSHARE(), SvLOCK & SvUNLOCK in perlapi.
Alternatively, you might do:
use threads; use threads::shared; my $d : shared; $d = shared_clone( mymodule::myfunc() );
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to make thread-save data on C API
by Tormalon (Initiate) on Sep 20, 2013 at 14:04 UTC | |
by BrowserUk (Patriarch) on Sep 20, 2013 at 15:33 UTC |
In Section
Seekers of Perl Wisdom