We using C++ in the media layer and we want to raise the priority of our _AUDIO PROCESSING_ thread, to make sure the audio works well even the CPU is high (totally %98 on an slow Phone).
I have searched on google and find to use
_setpriority( PRIO_PROCESS, 0, priority); but
_setpriority function is change the process priority instead of the thread.
I know there is Java API to do that, but we need an C++ API. So does there any way to raise an single thread priority from C++ code?