mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Apply clang-format to code base
This commit is contained in:
parent
f37d0be806
commit
ddb0522bbf
2199 changed files with 118692 additions and 114392 deletions
|
@ -19,7 +19,8 @@ namespace Misc
|
|||
if (pthread_setschedparam(pthread_self(), SCHED_IDLE, ¶m) == 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue