diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-10 23:52:46 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-10 23:52:46 +0000 |
commit | b9648c396b1fae393e6a20c7ddd3debee89b5cb9 (patch) | |
tree | fb1a246ed2b1312e0abcd32f2f7447bdc1815573 /nuttx/sched/os_internal.h | |
parent | 29bc7ab1359bd069c7a4909ed8694177d9482542 (diff) | |
download | px4-nuttx-b9648c396b1fae393e6a20c7ddd3debee89b5cb9.tar.gz px4-nuttx-b9648c396b1fae393e6a20c7ddd3debee89b5cb9.tar.bz2 px4-nuttx-b9648c396b1fae393e6a20c7ddd3debee89b5cb9.zip |
Repartition functionality in preparation for nested, pending reprioritization
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1591 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/os_internal.h')
-rw-r--r-- | nuttx/sched/os_internal.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nuttx/sched/os_internal.h b/nuttx/sched/os_internal.h index e6e1849f4..56a4e8ec6 100644 --- a/nuttx/sched/os_internal.h +++ b/nuttx/sched/os_internal.h @@ -252,7 +252,12 @@ extern boolean sched_addprioritized(FAR _TCB *newTcb, extern boolean sched_mergepending(void); extern void sched_addblocked(FAR _TCB *btcb, tstate_t task_state); extern void sched_removeblocked(FAR _TCB *btcb); -extern int sched_settcbprio(FAR _TCB *tcb, int sched_priority); +extern int sched_setpriority(FAR _TCB *tcb, int sched_priority); +#ifdef CONFIG_PRIORITY_INHERITANCE +extern int sched_reprioritize(FAR _TCB *tcb, int sched_priority); +#else +# define sched_reprioritize(tcb,sched_priority) sched_setpriority(tcb,sched_priority) +#endif extern FAR _TCB *sched_gettcb(pid_t pid); #if CONFIG_NFILE_DESCRIPTORS > 0 || CONFIG_NSOCKET_DESCRIPTORS > 0 |