From d989dbfec4a16ba8b40209aff7025645c8045681 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 8 Jan 2018 09:56:39 +0100 Subject: thread/Thread: make IsInside() debug-only This method is only used inside assert(). --- src/thread/Thread.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/thread') 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(); -- cgit v1.2.3