8 #if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__))
10 #include <pthread_np.h>
19 const static sched_param param{};
20 const int rc = pthread_setschedparam(pthread_self(), SCHED_BATCH, ¶m);
void ScheduleBatchPriority()
On platforms that support it, tell the kernel the calling thread is CPU-intensive and non-interactive...
std::string SysErrorString(int err)
Return system error string from errno value.