thread/*: add "noexcept"

This commit is contained in:
Max Kellermann
2017-11-26 11:58:53 +01:00
parent 3b3ec402d6
commit 618704f504
11 changed files with 44 additions and 44 deletions

View File

@@ -41,13 +41,13 @@
#ifdef __linux__
static int
ioprio_set(int which, int who, int ioprio)
ioprio_set(int which, int who, int ioprio) noexcept
{
return syscall(__NR_ioprio_set, which, who, ioprio);
}
static void
ioprio_set_idle()
ioprio_set_idle() noexcept
{
static constexpr int _IOPRIO_WHO_PROCESS = 1;
static constexpr int _IOPRIO_CLASS_IDLE = 3;
@@ -61,7 +61,7 @@ ioprio_set_idle()
#endif
void
SetThreadIdlePriority()
SetThreadIdlePriority() noexcept
{
#ifdef __linux__
#ifdef SCHED_IDLE