summaryrefslogtreecommitdiff
path: root/nuttx/sched/sem_holder.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-08-28 19:01:14 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-08-28 19:01:14 +0000
commit96c66099109df5198d95ed32b5278bb574f4c8e5 (patch)
treeacd75c9f9d73075b8a1beef2a26e939f63ae353c /nuttx/sched/sem_holder.c
parenta9ead1328ee2c67363e580946564c80ed91d96ff (diff)
downloadpx4-nuttx-96c66099109df5198d95ed32b5278bb574f4c8e5.tar.gz
px4-nuttx-96c66099109df5198d95ed32b5278bb574f4c8e5.tar.bz2
px4-nuttx-96c66099109df5198d95ed32b5278bb574f4c8e5.zip
Add perror()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5061 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/sem_holder.c')
-rw-r--r--nuttx/sched/sem_holder.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/sched/sem_holder.c b/nuttx/sched/sem_holder.c
index abe7e9e28..c850a3b5a 100644
--- a/nuttx/sched/sem_holder.c
+++ b/nuttx/sched/sem_holder.c
@@ -948,10 +948,11 @@ void sem_restorebaseprio(FAR _TCB *stcb, FAR sem_t *sem)
(sem->semcount <= 0 && stcb != NULL));
/* Handler semaphore counts posed from an interrupt handler differently
- * from interrupts posted from threads. The priority difference is that
+ * from interrupts posted from threads. The primary difference is that
* if the semaphore is posted from a thread, then the poster thread is
* a player in the priority inheritance scheme. The interrupt handler
- * externally injects the new count without participated itself.
+ * externally injects the new count without otherwise participating
+ * itself.
*/
if (up_interrupt_context())