Android framework層的C++代碼設置線程優先級

int threadFunc(void* func) { pid_t tid = androidGetTid(); androidSetThreadPriority(tid, ANDROID_PRIORITY_AUDIO); while(1) { ...... } } 經過上面的代碼能夠設置framework層C++的線程 優先級。參考:AudioTr
相關文章
相關標籤/搜索