nb: Check threads only when LOOL_CHECK_THREADS is set.
Change-Id: I4137685eb956469d419bded318b83de2b10ce19d
This commit is contained in:
parent
b895393cea
commit
4eccd4d7b4
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ public:
|
|||
virtual bool isCorrectThread()
|
||||
{
|
||||
#if ENABLE_DEBUG
|
||||
return std::this_thread::get_id() == _owner;
|
||||
return !getenv("LOOL_CHECK_THREADS") || std::this_thread::get_id() == _owner;
|
||||
#else
|
||||
return true;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue