Skip to content

Commit

Permalink
Update util.h
Browse files Browse the repository at this point in the history
  • Loading branch information
vashshawn committed Apr 26, 2024
1 parent c886948 commit 5f2af7d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,13 @@ template <typename T> 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
Expand Down

0 comments on commit 5f2af7d

Please sign in to comment.