Windows interfering with the timing. */\r
#define portSOAK_TEST\r
#ifndef portSOAK_TEST\r
+ #define portDELETE_SELF_THREAD_PRIORITY THREAD_PRIORITY_HIGHEST /* Must be highest. */\r
#define portSIMULATED_INTERRUPTS_THREAD_PRIORITY THREAD_PRIORITY_NORMAL\r
#define portSIMULATED_TIMER_THREAD_PRIORITY THREAD_PRIORITY_BELOW_NORMAL\r
#define portTASK_THREAD_PRIORITY THREAD_PRIORITY_IDLE\r
#else\r
- #define portSIMULATED_INTERRUPTS_THREAD_PRIORITY THREAD_PRIORITY_TIME_CRITICAL\r
- #define portSIMULATED_TIMER_THREAD_PRIORITY THREAD_PRIORITY_HIGHEST\r
- #define portTASK_THREAD_PRIORITY THREAD_PRIORITY_ABOVE_NORMAL\r
+ #define portDELETE_SELF_THREAD_PRIORITY THREAD_PRIORITY_TIME_CRITICAL /* Must be highest. */\r
+ #define portSIMULATED_INTERRUPTS_THREAD_PRIORITY THREAD_PRIORITY_HIGHEST\r
+ #define portSIMULATED_TIMER_THREAD_PRIORITY THREAD_PRIORITY_ABOVE_NORMAL\r
+ #define portTASK_THREAD_PRIORITY THREAD_PRIORITY_NORMAL\r
#endif\r
/*\r
* Created as a high priority thread, this function uses a timer to simulate\r
does not run and swap it out before it is closed. If that were to happen\r
the thread would never run again and effectively be a thread handle and\r
memory leak. */\r
- SetThreadPriority( pvThread, THREAD_PRIORITY_HIGHEST );\r
+ SetThreadPriority( pvThread, portDELETE_SELF_THREAD_PRIORITY );\r
\r
/* This function will not return, therefore a yield is set as pending to\r
ensure a context switch occurs away from this thread on the next tick. */\r