From 5f2af7dd75f9892633d2157a8beabfbfc6b198ee Mon Sep 17 00:00:00 2001 From: Shawn M Date: Fri, 26 Apr 2024 13:47:42 -0700 Subject: [PATCH] Update util.h --- src/util.h | 7 +++++++ 1 file changed, 7 insertions(+) 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