diff --git a/src/util.h b/src/util.h index c405627..4f4e08e 100644 --- a/src/util.h +++ b/src/util.h @@ -537,6 +537,13 @@ template class CMedianFilter } }; +#ifdef WIN32 +inline void SetThreadPriority(int nPriority) +{ + SetThreadPriority(GetCurrentThread(), nPriority); +} +#else + #ifdef WIN32 #define THREAD_PRIORITY_LOWEST PRIO_MAX #define THREAD_PRIORITY_BELOW_NORMAL 2