| 1 | package XS::Framework; | ||||||||||
| 2 | 37 | ▶ | use 5.018; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 37 | ▶ | use Config; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 37 | ▶ | use next::XS; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 37 | ▶ | use XS::libpanda; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 37 | ▶ | use XS::ErrorCode(); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 37 | ▶ | use XS::STL::ErrorCode(); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 37 | ▶ | use XS::STL::ErrorCategory(); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 37 | our $VERSION = '1.6.2'; | |||||||||
| 11 | |||||||||||
| 12 | # threads::shared doesn't respect the fact that PL_destroyhook might be in use by other modules and doesn't proxy call to next hook | ||||||||||
| 13 | # so that we must hook after threads::shared | ||||||||||
| 14 | 37 | ▶ | if ($Config{useithreads}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 0 | require threads; | |||||||||
| 16 | 0 | require threads::shared; | |||||||||
| 17 | 37 | ▶ | no warnings 'redefine'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 18 | 0 | my $orig_threads_create = \&threads::create; | |||||||||
| 19 | 0 | ▶ | *threads::create = sub { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 20 | 0 | __at_thread_create(); | |||||||||
| 21 | 0 | goto &$orig_threads_create; | |||||||||
| 22 | 0 | }; | |||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | 37 | XS::Loader::load(); | |||||||||
| 26 | |||||||||||
| 27 | 37 | ▶ | END { | ||||||||
|
Subroutine
END: called CC=1 SCAR=0.0
| |||||||||||
| 28 | 37 | __at_perl_destroy(); | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | 37 | 1; | |||||||||