This helper function is bool in juce_Thread.cpp but void in juce_win32_threads.cpp, causing a linker error in my app.
Seems a simple matter to fix:
The win32 SDK says:
BOOL WINAPI SetThreadPriority(HANDLE hThread, int nPriority);
…
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
so the fix seems trivial:
bool /*not void*/ juce_setThreadPriority (void* threadHandle, int priority) throw()
{
...
return SetThreadPriority (threadHandle, pri);
}