summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2001-01-16 22:07:26 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-01-16 22:07:26 +0000
commitce08f86c8b1d404b3d9fec75a102b8cd65f8766a (patch)
tree99554dbf0369752a5ad53b5a4f7cacfeee7993f8 /perl.h
parent8a56572fafff2f72353c07ffd8e7d0373972b8d5 (diff)
downloadperl-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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 19827a3101..bbea5dddd3 100644
--- a/perl.h
+++ b/perl.h
@@ -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