#include "priority.h" extern void ChangePriority(int thread, int priority) ; /* ---------------------------------------------------- */ /* Use the #defines in the above header file and the */ /* externally-defined functions to modify one or more */ /* of the four functions defined in this file in order */ /* to implement: */ /* */ /* (1) The Priority Ceiling Protocol, and */ /* (2) The Priority Inheritance Protocol. */ /* ---------------------------------------------------- */ void LoPriThreadPend(void) { SemaphorePend(TSK_LOW) ; } void LoPriThreadPost(void) { SemaphorePost(TSK_LOW) ; } void HiPriThreadPend(void) { SemaphorePend(TSK_HI) ; } void HiPriThreadPost(void) { SemaphorePost(TSK_HI) ; }