diff options
| author | bernard <[email protected]> | 2017-12-30 14:46:51 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2017-12-30 14:46:51 +0800 |
| commit | 6c7150a5fce9e39259227e3d32149ba9a8c2b1dd (patch) | |
| tree | 271d8453ce7540c170810c3e4db68c0035c04868 /include | |
| parent | 7c3d6fbbda366c3962786da0533d66c5f0d45a91 (diff) | |
[Kernel] code cleanup for signal.
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 7896f077fd..ce451e7be1 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -476,11 +476,12 @@ typedef void (*rt_sighandler_t)(int signo); #define RT_THREAD_RUNNING 0x03 /**< Running status */ #define RT_THREAD_BLOCK RT_THREAD_SUSPEND /**< Blocked status */ #define RT_THREAD_CLOSE 0x04 /**< Closed status */ - #define RT_THREAD_STAT_MASK 0x0f #define RT_THREAD_STAT_SIGNAL 0x10 #define RT_THREAD_STAT_SIGNAL_READY (RT_THREAD_STAT_SIGNAL | RT_THREAD_READY) +#define RT_THREAD_STAT_SIGNAL_SUSPEND 0x20 +#define RT_THREAD_STAT_SIGNAL_MASK 0xf0 /** * thread control command definitions @@ -535,8 +536,8 @@ struct rt_thread #endif #if defined(RT_USING_SIGNALS) - rt_sigset_t sig_pending; /**< the pending signals */ - rt_sigset_t sig_mask; /**< the mask bits of signal */ + rt_sigset_t sig_pending; /**< the pending signals */ + rt_sigset_t sig_mask; /**< the mask bits of signal */ void *sig_ret; /**< the return stack pointer from signal */ rt_sighandler_t *sig_vectors; /**< vectors of signal handler */ |
