mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 05:42:05 +08:00
Correct Real Time signal definitions.
There are number problems with the implementation of realtime signals in NuttX as discussed in Issue #8869. A first step to correcting any of these is to correct the definitions of SIGRTMIN, SIGRTMAX, and RTSIG_SIX. SIGRTMIN is the first real-time signals. Real-time signal numbers must not overlap the standard signal numbers. Before this fix, it was set equal to the first standard signal. Real-time signals differ from standard signals in that (1) they have no default actions, and (2) real time signal actions are prioritized whereas standard signal actions are processed FIFO. SIGRTMAX is the last real-time signal. RTSIG_MAX must be set equal to maximum number of realtime signals reserved for application use The change corrects the definitons but has not impact at all becasuse none of there definitions are currently used in the OS. But they will be when prioritized real time signal handling is implemented.
This commit is contained in:
committed by
Petro Karashchenko
parent
663b4c4f34
commit
104a7d4e00
+2
-2
@@ -82,7 +82,7 @@
|
||||
*
|
||||
* Required for sigqueue
|
||||
*
|
||||
* _POSIX_RTSIG_MAX Difference between SIGRTMIN and SIGRTMAX
|
||||
* _POSIX_RTSIG_MAX Number of realtime signals reserved for application
|
||||
* _POSIX_SIGQUEUE_MAX Max number signals a task can queue
|
||||
*
|
||||
* Required for POSIX timers
|
||||
@@ -146,7 +146,7 @@
|
||||
|
||||
/* Required for sigqueue */
|
||||
|
||||
#define _POSIX_RTSIG_MAX 31
|
||||
#define _POSIX_RTSIG_MAX 2 /* Number of reserved realtime signals */
|
||||
#define _POSIX_SIGQUEUE_MAX 32
|
||||
|
||||
/* Required for symbolic links */
|
||||
|
||||
Reference in New Issue
Block a user