summaryrefslogtreecommitdiff
path: root/src/thread/Util.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-11-26 11:58:53 +0100
committerMax Kellermann <max@musicpd.org>2017-11-26 11:58:53 +0100
commit618704f50497f22bc02235648a56c50f651afc47 (patch)
tree0c3c4d3be42d4f85082928f6346f6028775a2cd9 /src/thread/Util.cxx
parent3b3ec402d69ae4af976e34ac07f725646f9c41a0 (diff)
thread/*: add "noexcept"
Diffstat (limited to 'src/thread/Util.cxx')
-rw-r--r--src/thread/Util.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/thread/Util.cxx b/src/thread/Util.cxx
index 16fb1be7a..34c6b5380 100644
--- a/src/thread/Util.cxx
+++ b/src/thread/Util.cxx
@@ -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