summaryrefslogtreecommitdiff
path: root/nuttx/include/signal.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-11-05 22:58:36 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-11-05 22:58:36 +0000
commit7d5e90d121078be23986be35252a4612d2f39f68 (patch)
treead18d357e3560b507d64f9d64a173f3e2f161ab7 /nuttx/include/signal.h
parent4e4e59b8d249ed809a8a97072f0f7efcbaf4bc89 (diff)
downloadpx4-nuttx-7d5e90d121078be23986be35252a4612d2f39f68.tar.gz
px4-nuttx-7d5e90d121078be23986be35252a4612d2f39f68.tar.bz2
px4-nuttx-7d5e90d121078be23986be35252a4612d2f39f68.zip
Incorporate the work thread
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2230 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/signal.h')
-rw-r--r--nuttx/include/signal.h37
1 files changed, 33 insertions, 4 deletions
diff --git a/nuttx/include/signal.h b/nuttx/include/signal.h
index 96f90be12..9357c4d7d 100644
--- a/nuttx/include/signal.h
+++ b/nuttx/include/signal.h
@@ -67,16 +67,45 @@
#define SIGRTMIN 0 /* First real time signal */
#define SIGRTMAX 31 /* Last real time signal */
-/* A few of the real time signals are used within the OS. The reset are all
- * user signals:
+/* A few of the real time signals are used within the OS. They have
+ * default values that can be overridden from the configuration file. The
+ * rest are all user signals:
*/
+#ifndef CONFIG_SIG_SIGUSR1
#define SIGUSR1 0 /* User signal 1 */
+#else
+#define SIGUSR1 CONFIG_SIG_SIGUSR1
+#endif
+
+#ifndef CONFIG_SIG_SIGUSR2
#define SIGUSR2 1 /* User signal 2 */
+#else
+#define SIGUSR2 CONFIG_SIG_SIGUSR2
+#endif
+
+#ifndef CONFIG_SIG_SIGALARM
#define SIGALRM 2 /* Default signal used with POSIX timers (used only */
/* no other signal is provided) */
-#define SIGCONDTIMEDOUT 3 /* Used in the implementation of */
- /* pthread_cond_timedwait */
+#else
+#define SIGALRM CONFIG_SIG_SIGALARM
+#endif
+
+#ifndef CONFIG_DISABLE_PTHREAD
+#ifndef CONFIG_SIG_SIGCONDTIMEDOUT
+#define SIGCONDTIMEDOUT 3 /* Used in the implementation of pthread_cond_timedwait */
+#else
+#define SIGCONDTIMEDOUT CONFIG_SIG_SIGCONDTIMEDOUT
+#endif
+#endif
+
+#ifdef CONFIG_SCHED_WORKQUEUE
+#ifndef CONFIG_SIG_SIGWORK
+#define SIGWORK 4 /* Used to wake up the work queue */
+#else
+#define SIGWORK CONFIG_SIG_SIGWORK
+#endif
+#endif
/* sigprocmask() "how" definitions. Only one of the following can be specified: */