Reviewers: jkorous, gribozavr
Subscribers: dexonsmith, arphaman, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D60867
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358665
91177308-0d34-0410-b5e6-
96231b3b80d8
if (getenv("LIBCLANG_BGPRIO_DISABLE"))
return;
-#ifdef USE_DARWIN_THREADS
- setpriority(PRIO_DARWIN_THREAD, 0, PRIO_DARWIN_BG);
-#endif
+ llvm::set_thread_priority(llvm::ThreadPriority::Background);
}
void cxindex::printDiagsToStderr(ASTUnit *Unit) {