diff options
author | Max Kellermann <max@musicpd.org> | 2018-01-08 09:56:39 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-01-08 09:56:39 +0100 |
commit | d989dbfec4a16ba8b40209aff7025645c8045681 (patch) | |
tree | df2beffd538ac0e4d59a735eeaa21f5a2c1a05cf /src/thread | |
parent | ca9fcec3643aef9b7cd15cc76248e0981b77decf (diff) |
thread/Thread: make IsInside() debug-only
This method is only used inside assert().
Diffstat (limited to 'src/thread')
-rw-r--r-- | src/thread/Thread.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/thread/Thread.hxx b/src/thread/Thread.hxx index f02dbf2e0..797ae9676 100644 --- a/src/thread/Thread.hxx +++ b/src/thread/Thread.hxx @@ -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(); |