Apply clang-format to code base

This commit is contained in:
clang-format-bot 2022-09-22 21:26:05 +03:00 committed by ζeh Matt
parent f37d0be806
commit ddb0522bbf
No known key found for this signature in database
GPG key ID: 18CE582C71A225B0
2199 changed files with 118692 additions and 114392 deletions

View file

@ -19,7 +19,8 @@ namespace Misc
if (pthread_setschedparam(pthread_self(), SCHED_IDLE, &param) == 0)
Log(Debug::Verbose) << "Using idle priority for thread=" << std::this_thread::get_id();
else
Log(Debug::Warning) << "Failed to set idle priority for thread=" << std::this_thread::get_id() << ": " << std::strerror(errno);
Log(Debug::Warning) << "Failed to set idle priority for thread=" << std::this_thread::get_id() << ": "
<< std::strerror(errno);
}
}
@ -34,14 +35,15 @@ namespace Misc
if (SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_LOWEST))
Log(Debug::Verbose) << "Using idle priority for thread=" << std::this_thread::get_id();
else
Log(Debug::Warning) << "Failed to set idle priority for thread=" << std::this_thread::get_id() << ": " << GetLastError();
Log(Debug::Warning) << "Failed to set idle priority for thread=" << std::this_thread::get_id() << ": "
<< GetLastError();
}
}
#elif defined(__FreeBSD__)
#include <sys/types.h>
#include <sys/rtprio.h>
#include <sys/types.h>
namespace Misc
{
@ -53,7 +55,8 @@ namespace Misc
if (rtprio_thread(RTP_SET, 0, &prio) == 0)
Log(Debug::Verbose) << "Using idle priority for thread=" << std::this_thread::get_id();
else
Log(Debug::Warning) << "Failed to set idle priority for thread=" << std::this_thread::get_id() << ": " << std::strerror(errno);
Log(Debug::Warning) << "Failed to set idle priority for thread=" << std::this_thread::get_id() << ": "
<< std::strerror(errno);
}
}