| 1 | package SPVM::Sys::Signal::Handler; | ||
| 2 | |||
| 3 | 1; | ||
| 4 | |||
| 5 | =head1 Name | ||
| 6 | |||
| 7 | SPVM::Sys::Signal::Handler - Signal Handler | ||
| 8 | |||
| 9 | =head1 Description | ||
| 10 | |||
| 11 | The C<Sys::Signal::Handler> class has methods to manipulate signal handlers. | ||
| 12 | |||
| 13 | =head1 Usage | ||
| 14 | |||
| 15 | use Sys::Signal::Handler; | ||
| 16 | |||
| 17 | =head1 Class Methods | ||
| 18 | |||
| 19 | C<static method eq : int ($handler1 : L<Sys::Signal::Handler|SPVM::Sys::Signal::Handler>, $handler2 : L<Sys::Signal::Handler|SPVM::Sys::Signal::Handler>);> | ||
| 20 | |||
| 21 | Checks if the $hander1 and $hander2 point to the same signal handler. | ||
| 22 | |||
| 23 | If the check is ok, returns 1, otherwise returns 0. | ||
| 24 | |||
| 25 | Exceptions: | ||
| 26 | |||
| 27 | $handler1 must be defined. Otherwise an exception is thrown. | ||
| 28 | |||
| 29 | $handler2 must be defined. Otherwise an exception is thrown. | ||
| 30 | |||
| 31 | =head1 See Also | ||
| 32 | |||
| 33 | =over 2 | ||
| 34 | |||
| 35 | =item * L<Sys|SPVM::Sys> | ||
| 36 | |||
| 37 | =back | ||
| 38 | |||
| 39 | =head1 Copyright & License | ||
| 40 | |||
| 41 | Copyright (c) 2023 Yuki Kimoto | ||
| 42 | |||
| 43 | MIT License | ||
| 44 |