Reputation: 51
Environment: Win XP, Visual C++
I'm using the pthread_win32 library in order to implement threads in my program, and I want to raise my process (program) priority to HIGH_PRIORITY_CLASS. Is there any function in the library that allows this kind of operation?
Otherwise, is it possible to use the SetPriorityClass
function with `pthread_win32, or must I use the win threads to ensure some compatibility?
Upvotes: 2
Views: 560
Reputation: 363547
You can get a native thread handle on which to call SetPriorityClass
with pthread_getw32threadhandle_np
.
Upvotes: 2