summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-06-04 16:18:05 +0100
committerDavid Mitchell <davem@iabyn.com>2010-06-04 16:18:05 +0100
commit92f022bbf8c129c6f2379a382f1eaaa5c7bd9f3f (patch)
treef848f69dc55ae2b803d5123060a048bc11d6f73d /perl.h
parent83918a83a5dfae8071d366c33fa37b83aabecfc4 (diff)
downloadperl-92f022bbf8c129c6f2379a382f1eaaa5c7bd9f3f.tar.gz
add PL_signalhook to hook into signal dispatch
This is initially intended for threads::shared and shouldn't (yet) be considered part of the public API.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index c21aaa9308..ea18d320fa 100644
--- a/perl.h
+++ b/perl.h
@@ -4189,6 +4189,7 @@ typedef void (CPERLscope(*share_proc_t)) (pTHX_ SV *sv);
typedef int (CPERLscope(*thrhook_proc_t)) (pTHX);
typedef OP* (CPERLscope(*PPADDR_t)[]) (pTHX);
typedef bool (CPERLscope(*destroyable_proc_t)) (pTHX_ SV *sv);
+typedef void (CPERLscope(*despatch_signals_proc_t)) (pTHX);
/* _ (for $_) must be first in the following list (DEFSV requires it) */
#define THREADSV_NAMES "_123456789&`'+/.,\\\";^-%=|~:\001\005!@"
@@ -5677,7 +5678,7 @@ typedef struct am_table_short AMTS;
#ifndef PERL_MICRO
# ifndef PERL_ASYNC_CHECK
-# define PERL_ASYNC_CHECK() if (PL_sig_pending) despatch_signals()
+# define PERL_ASYNC_CHECK() if (PL_sig_pending) CALL_FPTR(PL_signalhook)(aTHX)
# endif
#endif