From a057b4f6d88f7bfc1d9846e14de5617a4c281c0d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 3 Jun 2017 21:33:44 +0200 Subject: *: add lost of "noexcept" specifications --- src/thread/Id.hxx | 6 +++--- src/thread/Thread.hxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/thread') diff --git a/src/thread/Id.hxx b/src/thread/Id.hxx index 169cb1af8..4b0b9109e 100644 --- a/src/thread/Id.hxx +++ b/src/thread/Id.hxx @@ -53,7 +53,7 @@ public: #endif gcc_const - static ThreadId Null() { + static ThreadId Null() noexcept { #ifdef WIN32 return 0; #else @@ -63,7 +63,7 @@ public: } gcc_pure - bool IsNull() const { + bool IsNull() const noexcept { return *this == Null(); } @@ -80,7 +80,7 @@ public: } gcc_pure - bool operator==(const ThreadId &other) const { + bool operator==(const ThreadId &other) const noexcept { #ifdef WIN32 return id == other.id; #else diff --git a/src/thread/Thread.hxx b/src/thread/Thread.hxx index a699ba09c..99ad4da9d 100644 --- a/src/thread/Thread.hxx +++ b/src/thread/Thread.hxx @@ -77,7 +77,7 @@ public: * Check if this thread is the current thread. */ gcc_pure - bool IsInside() const { + bool IsInside() const noexcept { #ifdef WIN32 return GetCurrentThreadId() == id; #else -- cgit v1.2.3