diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-01-16 22:07:26 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-01-16 22:07:26 +0000 |
commit | ce08f86c8b1d404b3d9fec75a102b8cd65f8766a (patch) | |
tree | 99554dbf0369752a5ad53b5a4f7cacfeee7993f8 /perl.h | |
parent | 8a56572fafff2f72353c07ffd8e7d0373972b8d5 (diff) | |
download | perl-ce08f86c8b1d404b3d9fec75a102b8cd65f8766a.tar.gz |
Provide infrastructure for PERL_ASYNC_CHECK() style safe signals.
Provides all the "cost" but no benefit yet - it is to allow cost
to be measured, and implementation experiments (just in mg.c?).
p4raw-id: //depot/perlio@8457
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -3338,6 +3338,11 @@ typedef struct am_table_short AMTS; * Keep this check simple, or it may slow down execution * massively. */ + +#ifndef PERL_OLD_SIGNALS +#define PERL_ASYNC_CHECK() if (PL_sig_pending) despatch_signals() +#endif + #ifndef PERL_ASYNC_CHECK #define PERL_ASYNC_CHECK() NOOP #endif |