X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=FreeRTOS%2FSource%2Finclude%2Ftask.h;h=e8fc4559aec00788dfdea55a92ad4743038cd947;hb=bf83ab92e2cb4fd72dbdef0ec61f4b599687d888;hp=ae279e1d6000905f9963571fb59b30618e8f4ed1;hpb=bdb98e3caa97f572688d14ae4b570e206f4cc4f7;p=freertos diff --git a/FreeRTOS/Source/include/task.h b/FreeRTOS/Source/include/task.h index ae279e1d6..e8fc4559a 100644 --- a/FreeRTOS/Source/include/task.h +++ b/FreeRTOS/Source/include/task.h @@ -1507,7 +1507,7 @@ void vTaskPriorityInherit( TaskHandle_t const pxMutexHolder ) PRIVILEGED_FUNCTIO * Set the priority of a task back to its proper priority in the case that it * inherited a higher priority while it was holding a semaphore. */ -void vTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder ) PRIVILEGED_FUNCTION; +BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder ) PRIVILEGED_FUNCTION; /* * Generic version of the task creation function which is in turn called by the @@ -1552,6 +1552,15 @@ void vTaskStepTick( const TickType_t xTicksToJump ) PRIVILEGED_FUNCTION; */ eSleepModeStatus eTaskConfirmSleepModeStatus( void ) PRIVILEGED_FUNCTION; +/* + * For internal use only. Increment the mutex held count when a mutex is + * taken and decrement the mutex held count when the mutex is given back + * respectively. The mutex held count is used to know when it is safe to + * disinherit a priority. + */ +void vTaskIncrementMutexHeldCount( void ); +void vTaskDecrementMutexHeldCount( void ); + #ifdef __cplusplus } #endif