diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-14 21:15:18 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-14 21:15:18 +0000 |
commit | 313eb5bb780f9e9baa353651996b51ce33a85fca (patch) | |
tree | 2bd68d26bb0f4b17186f7b7cdb26f0f5c02932fd /nuttx/sched/sched_removereadytorun.c | |
parent | 33d20a1c87eb7cae586cc0d444729eda6c46e723 (diff) | |
download | px4-nuttx-313eb5bb780f9e9baa353651996b51ce33a85fca.tar.gz px4-nuttx-313eb5bb780f9e9baa353651996b51ce33a85fca.tar.bz2 px4-nuttx-313eb5bb780f9e9baa353651996b51ce33a85fca.zip |
Switching to C99 stdbool.h types
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2339 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/sched_removereadytorun.c')
-rw-r--r-- | nuttx/sched/sched_removereadytorun.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/nuttx/sched/sched_removereadytorun.c b/nuttx/sched/sched_removereadytorun.c index f09b5fc99..46f148150 100644 --- a/nuttx/sched/sched_removereadytorun.c +++ b/nuttx/sched/sched_removereadytorun.c @@ -39,13 +39,14 @@ #include <nuttx/config.h> +#include <stdbool.h> #include <queue.h> #include <assert.h> #include "os_internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /**************************************************************************** @@ -78,7 +79,7 @@ * rtcb - Points to the TCB that is ready-to-run * * Return Value: - * TRUE if the currently active task (the head of the + * true if the currently active task (the head of the * g_readytorun list) has changed. * * Assumptions: @@ -87,11 +88,12 @@ * a good idea -- use irqsave()). * - The caller handles the condition that occurs if the * the head of the g_readytorun list is changed. + * ****************************************************************************/ -boolean sched_removereadytorun(FAR _TCB *rtcb) +bool sched_removereadytorun(FAR _TCB *rtcb) { - boolean ret = FALSE; + bool ret = false; /* Check if the TCB to be removed is at the head of the ready * to run list. In this case, we are removing the currently @@ -109,7 +111,7 @@ boolean sched_removereadytorun(FAR _TCB *rtcb) sched_note_switch(rtcb, rtcb->flink); rtcb->flink->task_state = TSTATE_TASK_RUNNING; - ret = TRUE; + ret = true; } /* Remove the TCB from the ready-to-run list */ |