XS::Framework::Manual::SVAPI::perl_destroy - XF::Framework at_perl_destroy() reference
void at_perl_destroy (const panda::function<void()>& f);
Sometimes you need to be notified, when Perl interpreter is about to be destroyed. This is needed when you captured some Perl structures and want to release them properly or invoke other clean-up functions.
This hook function is similar to END block of a perl module, but on C++ layer.
END
The added hook-functions are executed in the order they added (FIFO). Here is an example:
at_perl_destroy([](){ std::cout << "perl interpreter is about to be destoryed\n"; });
XS::Framework
XS::Framework::Manual::SVAPI
To install XS::Framework, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XS::Framework
CPAN shell
perl -MCPAN -e shell install XS::Framework
For more information on module installation, please visit the detailed CPAN module installation guide.