Async-Interrupt
view release on metacpan or search on metacpan
Interrupt.pm view on Meta::CPAN
375376377378379380381382383384385386387388389390391392393394
signal_func (signal_arg, 0);
The function is safe to call from within signal and thread contexts, at
any
time
. The specified C<value> is passed to both C and Perl callback.
C<
$value
> must be in the valid range
for
a C<sig_atomic_t>, except C<0>
(1..127 is portable).
If the function is called
while
the Async::Interrupt object is already
signaled but
before
the callbacks are being executed, then the stored
C<value> is either the old or the new one. Due to the asynchronous
nature of the code, the C<value> can even be passed to two consecutive
invocations of the callback.
=item $address = $async->c_var
Returns the address (cast to IV) of an C<IV> variable. The variable is set
to C<0> initially and gets set to the passed value whenever the object
gets signalled, and reset to C<0> once the interrupt has been handled.
317318319320321322323324325326327328329330331332333334335336
signal_func (signal_arg, 0);
The function is safe to call from within signal and thread contexts,
at any
time
. The specified
"value"
is passed to both C and Perl
callback.
$value
must be in the valid range
for
a
"sig_atomic_t"
, except 0
(1..127 is portable).
If the function is called
while
the Async::Interrupt object is
already signaled but
before
the callbacks are being executed, then
the stored
"value"
is either the old or the new one. Due to the
asynchronous nature of the code, the
"value"
can even be passed to
two consecutive invocations of the callback.
$address
=
$async
->c_var
Returns the address (cast to IV) of an
"IV"
variable. The variable
is set to 0 initially and gets set to the passed value whenever the
object gets signalled, and
reset
to 0 once the interrupt
has
been
handled.
( run in 0.433 second using v1.01-cache-2.11-cpan-454fe037f31 )