summaryrefslogtreecommitdiff
path: root/include/rtdef.h
diff options
context:
space:
mode:
authorHubretXie <[email protected]>2019-05-16 10:22:41 +0800
committerGitHub <[email protected]>2019-05-16 10:22:41 +0800
commit9de2942b159b7d08bc79aa370008bc42eeafc1e0 (patch)
treec6ed31f70123415e96da63973a8184e96eaad824 /include/rtdef.h
parentfd05ad76d69e02ee2c36e8eb73781a5654073be4 (diff)
parent4539172f5c97306a322ac1768c5c8eb4f878ea3c (diff)
Merge pull request #4 from RT-Thread/master
sync
Diffstat (limited to 'include/rtdef.h')
-rw-r--r--include/rtdef.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index 743b91d959..2aff4afdb0 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -492,9 +492,10 @@ typedef siginfo_t rt_siginfo_t;
#define RT_THREAD_CLOSE 0x04 /**< Closed status */
#define RT_THREAD_STAT_MASK 0x0f
-#define RT_THREAD_STAT_SIGNAL 0x10
+#define RT_THREAD_STAT_SIGNAL 0x10 /**< task hold signals */
#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_WAIT 0x20 /**< task is waiting for signals */
+#define RT_THREAD_STAT_SIGNAL_PENDING 0x40 /**< signals is held and it has not been procressed */
#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