Set the _owner even in the release builds.

We are warning about thread affinity even in the non-debug builds.

Change-Id: Ia91170765e9f4a29939dee847899345e9396d2c3
This commit is contained in:
Jan Holesovsky
2017-04-10 14:54:17 +02:00
parent 1437a060ec
commit e0f7c3fc67
2 changed files with 4 additions and 5 deletions

View File

@ -208,7 +208,7 @@ private:
std::list<unsigned> _cpuStats;
unsigned _cpuStatsSize = 100;
// always enabled to avoid ABI change in debug mode ...
/// We check the owner even in the release builds, needs to be always correct.
std::thread::id _owner;
};