diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-28 23:45:56 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-28 23:45:56 +0000 |
commit | 129dd27cc4deb042d2f88c65927adc49c338756d (patch) | |
tree | 265b6617c9f2281815f2c2120a571fb98ce7c883 /nuttx/sched/mq_send.c | |
parent | cbade4e74a17aa881e8031b6785657d7166dd819 (diff) | |
download | px4-nuttx-129dd27cc4deb042d2f88c65927adc49c338756d.tar.gz px4-nuttx-129dd27cc4deb042d2f88c65927adc49c338756d.tar.bz2 px4-nuttx-129dd27cc4deb042d2f88c65927adc49c338756d.zip |
Still working toward clean 8051 link
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@25 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/mq_send.c')
-rw-r--r-- | nuttx/sched/mq_send.c | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/nuttx/sched/mq_send.c b/nuttx/sched/mq_send.c index aaf700a45..92400d9c4 100644 --- a/nuttx/sched/mq_send.c +++ b/nuttx/sched/mq_send.c @@ -37,17 +37,19 @@ * Included Files ************************************************************/ -#include <nuttx/compiler.h> -#include <nuttx/kmalloc.h> -#include <sys/types.h> /* uint32, etc. */ -#include <mqueue.h> -#include <string.h> -#include <sched.h> -#include <debug.h> -#include <nuttx/arch.h> -#include "os_internal.h" -#include "sig_internal.h" -#include "mq_internal.h" +#include <nuttx/compiler.h> +#include <nuttx/kmalloc.h> +#include <sys/types.h> /* uint32, etc. */ +#include <mqueue.h> +#include <string.h> +#include <sched.h> +#include <debug.h> +#include <nuttx/arch.h> +#include "os_internal.h" +#ifndef CONFIG_DISABLE_SIGNALS +# include "sig_internal.h" +#endif +#include "mq_internal.h" /************************************************************ * Definitions @@ -339,6 +341,7 @@ int mq_send(mqd_t mqdes, const void *msg, size_t msglen, int prio) * message queue */ +#ifndef CONFIG_DISABLE_SIGNALS if (msgq->ntmqdes) { /* Remove the message notification data from the message queue. */ @@ -366,7 +369,7 @@ int mq_send(mqd_t mqdes, const void *msg, size_t msglen, int prio) sig_mqnotempty(pid, signo, sival_ptr); #endif } - +#endif /* Check if any tasks are waiting for the MQ not empty event. */ saved_state = irqsave(); |