summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorshaojinchun <[email protected]>2019-05-09 19:28:52 +0800
committershaojinchun <[email protected]>2019-05-11 09:34:26 +0800
commit6cdfb2ac92d8422136f926024b2c2f969fce6b9e (patch)
treef479fefbcfa2980a4db745a2c8b168e8beaaac89 /include
parenta05823b52ca6a24e6895d97dbf66583bede4994b (diff)
fix signal code
Diffstat (limited to 'include')
-rw-r--r--include/rtdef.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index 743b91d959..253333253a 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -495,6 +495,7 @@ typedef siginfo_t rt_siginfo_t;
#define RT_THREAD_STAT_SIGNAL 0x10
#define RT_THREAD_STAT_SIGNAL_READY (RT_THREAD_STAT_SIGNAL | RT_THREAD_READY)
#define RT_THREAD_STAT_SIGNAL_WAIT 0x20
+#define RT_THREAD_STAT_SIGNAL_PENDING 0x40
#define RT_THREAD_STAT_SIGNAL_MASK 0xf0
/**
@@ -596,7 +597,9 @@ struct rt_thread
rt_sigset_t sig_pending; /**< the pending signals */
rt_sigset_t sig_mask; /**< the mask bits of signal */
+#ifndef RT_USING_SMP
void *sig_ret; /**< the return stack pointer from signal */
+#endif
rt_sighandler_t *sig_vectors; /**< vectors of signal handler */
void *si_list; /**< the signal infor list */
#endif