| 1 | package Linux::Sys::CPU::Affinity; | ||
| 2 | |||
| 3 | 1 | ▶ | use 5.026001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | require Exporter; | ||
| 8 | |||
| 9 | our @ISA = qw(Exporter); | ||
| 10 | |||
| 11 | our %EXPORT_TAGS = ( | ||
| 12 | 'cpu' => [ qw/ | ||
| 13 | cpu_count | ||
| 14 | cpu_isset | ||
| 15 | cpu_equal | ||
| 16 | cpu_zero | ||
| 17 | cpu_clr | ||
| 18 | cpu_set | ||
| 19 | cpu_and | ||
| 20 | cpu_xor | ||
| 21 | cpu_or | ||
| 22 | / ], | ||
| 23 | 'nprocs' => [ qw/ get_nprocs / ] | ||
| 24 | ); | ||
| 25 | |||
| 26 | our @EXPORT_OK = ( | ||
| 27 | @{ $EXPORT_TAGS{'cpu'} }, | ||
| 28 | @{ $EXPORT_TAGS{'nprocs'} }, | ||
| 29 | ); | ||
| 30 | |||
| 31 | our @EXPORT = qw(); | ||
| 32 | |||
| 33 | our $VERSION = '0.13'; | ||
| 34 | |||
| 35 | require XSLoader; | ||
| 36 | XSLoader::load('Linux::Sys::CPU::Affinity', $VERSION); | ||
| 37 | |||
| 38 | 1; | ||
| 39 | __END__ | ||