Android framework层的C++代码设置线程优先级

int threadFunc(void* func) { pid_t tid = androidGetTid(); androidSetThreadPriority(tid, ANDROID_PRIORITY_AUDIO); while(1) { ...... } } 经过上面的代码能够设置framework层C++的线程 优先级。参考:AudioTr
相关文章
相关标签/搜索