diff options
author | Max Kellermann <max@musicpd.org> | 2017-05-15 23:01:49 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-05-15 23:01:49 +0200 |
commit | 4faef28cc56c3ed72a22dbd1cb317cf756217400 (patch) | |
tree | f2a3e8168ce9efada0fd0afe9971f90f0dee12b4 /src/thread | |
parent | 89b900432e0bfb324356f6ae62a09241eb75d251 (diff) | |
parent | b4c9d9c2a72fbf2c6c9090c73fe37fcc94dce1ca (diff) |
Merge tag 'v0.20.7'
release v0.20.7
Diffstat (limited to 'src/thread')
-rw-r--r-- | src/thread/Id.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread/Id.hxx b/src/thread/Id.hxx index 3063d0098..169cb1af8 100644 --- a/src/thread/Id.hxx +++ b/src/thread/Id.hxx @@ -71,7 +71,7 @@ public: * Return the current thread's id . */ gcc_pure - static const ThreadId GetCurrent() { + static const ThreadId GetCurrent() noexcept { #ifdef WIN32 return ::GetCurrentThreadId(); #else @@ -91,7 +91,7 @@ public: /** * Check if this thread is the current thread. */ - bool IsInside() const { + bool IsInside() const noexcept { return *this == GetCurrent(); } }; |