Async-Interrupt

 view release on metacpan or  search on metacpan

Interrupt.pm  view on Meta::CPAN

375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
   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.

README  view on Meta::CPAN

317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
       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 )