Merge tag 'v0.20.9'
release v0.20.9
This commit is contained in:
@@ -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
|
||||
|
@@ -78,7 +78,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
|
||||
|
Reference in New Issue
Block a user