-bool CrashRecoveryContext::RunSafelyOnThread(void (*Fn)(void*), void *UserData,
- unsigned RequestedStackSize) {
- return RunSafelyOnThread([&]() { Fn(UserData); }, RequestedStackSize);
+static bool hasThreadBackgroundPriority() {
+#ifdef __APPLE__
+ return getpriority(PRIO_DARWIN_THREAD, 0) == 1;
+#else
+ return false;
+#endif