For CrashRecoveryContext::RunSafelyOnThread, propagate Darwin's PRIO_DARWIN_BG to...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 25 Jun 2014 23:54:50 +0000 (23:54 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 25 Jun 2014 23:54:50 +0000 (23:54 +0000)
commite9012b035cb0ba31ef00fa86f47f3fc27ce831bc
tree8723aab84dfceaad2be274f8d660a1f5ecd8a1c7
parent54cbc706b10569a0ff6026d6e22f4005bddd181a
For CrashRecoveryContext::RunSafelyOnThread, propagate Darwin's PRIO_DARWIN_BG to the new thread if it is
set on the calling thread.

This allows libclang's indexing threads to propagate their priority to the clang module building threads.

rdar://17459872

llvm-svn: 211747
llvm/include/llvm/Support/CrashRecoveryContext.h
llvm/lib/Support/CrashRecoveryContext.cpp