Reduced maximum priority in debug build.

This commit is contained in:
crs 2003-05-20 19:14:24 +00:00
parent c0cd5cfce0
commit 01fab82edc
1 changed files with 5 additions and 0 deletions

View File

@ -378,7 +378,12 @@ CArchMultithreadWindows::setPriorityOfThread(CArchThread thread, int n)
{ REALTIME_PRIORITY_CLASS, THREAD_PRIORITY_HIGHEST }, { REALTIME_PRIORITY_CLASS, THREAD_PRIORITY_HIGHEST },
{ REALTIME_PRIORITY_CLASS, THREAD_PRIORITY_TIME_CRITICAL} { REALTIME_PRIORITY_CLASS, THREAD_PRIORITY_TIME_CRITICAL}
}; };
#if defined(_DEBUG)
// don't use really high priorities when debugging
static const size_t s_pMax = 13;
#else
static const size_t s_pMax = sizeof(s_pClass) / sizeof(s_pClass[0]) - 1; static const size_t s_pMax = sizeof(s_pClass) / sizeof(s_pClass[0]) - 1;
#endif
static const size_t s_pBase = 8; // index of normal priority static const size_t s_pBase = 8; // index of normal priority
assert(thread != NULL); assert(thread != NULL);