summaryrefslogtreecommitdiff
path: root/nuttx/sched/sem_holder.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-10-02 00:55:32 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-10-02 00:55:32 +0000
commit145c74dbfc283479225bdeec6d465bc52cd2aa55 (patch)
tree899e77aee2d18efebb5650abff18730895f055d1 /nuttx/sched/sem_holder.c
parent4f0f900f2da8a2f1ddd7ef6f8031cd2ffed30a5f (diff)
downloadpx4-nuttx-145c74dbfc283479225bdeec6d465bc52cd2aa55.tar.gz
px4-nuttx-145c74dbfc283479225bdeec6d465bc52cd2aa55.tar.bz2
px4-nuttx-145c74dbfc283479225bdeec6d465bc52cd2aa55.zip
Prep for 5.11 Releasenuttx-5.11
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2960 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/sem_holder.c')
-rw-r--r--nuttx/sched/sem_holder.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/nuttx/sched/sem_holder.c b/nuttx/sched/sem_holder.c
index 1c3126f2d..28d74a868 100644
--- a/nuttx/sched/sem_holder.c
+++ b/nuttx/sched/sem_holder.c
@@ -734,13 +734,14 @@ void sem_releaseholder(FAR sem_t *sem)
* stcb - The TCB of the task that was just started (if any). If the
* post action caused a count to be given to another thread, then stcb
* is the TCB that received the count. Note, just because stcb received
- * the count, it does not mean that it it is higher priority than other threads.
+ * the count, it does not mean that it it is higher priority than other
+ * threads.
* sem - A reference to the semaphore being posted.
* - If the semaphore count is <0 then there are still threads waiting
- * for a count. stcb should be non-null and will be higher priority than
- * all of the other threads still waiting.
- * - If it is ==0 then stcb refers to the thread that got the last count; no
- * other threads are waiting.
+ * for a count. stcb should be non-null and will be higher priority
+ * than all of the other threads still waiting.
+ * - If it is ==0 then stcb refers to the thread that got the last count;
+ * no other threads are waiting.
* - If it is >0 then there should be no threads waiting for counts and
* stcb should be null.
*
@@ -831,6 +832,7 @@ void sem_restorebaseprio(FAR _TCB *stcb, FAR sem_t *sem)
*
****************************************************************************/
+#ifndef CONFIG_DISABLE_SIGNALS
void sem_canceled(FAR _TCB *stcb, FAR sem_t *sem)
{
/* Check our assumptions */
@@ -841,6 +843,7 @@ void sem_canceled(FAR _TCB *stcb, FAR sem_t *sem)
(void)sem_foreachholder(sem, sem_restoreholderprio, stcb);
}
+#endif
/****************************************************************************
* Function: sem_enumholders