thread/Thread: make IsInside() debug-only

This method is only used inside assert().
This commit is contained in:
Max Kellermann
2018-01-08 09:56:39 +01:00
parent ca9fcec364
commit d989dbfec4
3 changed files with 11 additions and 0 deletions

View File

@@ -64,6 +64,7 @@ public:
#endif
}
#ifndef NDEBUG
/**
* Check if this thread is the current thread.
*/
@@ -81,6 +82,7 @@ public:
return pthread_self() == handle;
#endif
}
#endif
void Start();
void Join();