mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-23 04:04:15 +08:00
fix signal code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user