diff options
author | Tor Lillqvist <tml@collabora.com> | 2013-10-29 13:16:39 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2013-10-29 13:24:23 +0200 |
commit | b67b93bf5b81b8717f80f03ef8dba8b06d7abb54 (patch) | |
tree | 0b8d1294c0299b6878b79fa8f12df787bd0d3ab5 /vcl/generic | |
parent | 8f0ecf253531963144d3d1c9ee5c12a6cda99c4e (diff) |
Add a SAL_WARN_IF to get more verbose information when CheckYieldMutex() fails
Change-Id: Ia9b9e43a25c1d86e3f8c6d9a29d54dd94625bb0d
Diffstat (limited to 'vcl/generic')
-rw-r--r-- | vcl/generic/app/geninst.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/generic/app/geninst.cxx b/vcl/generic/app/geninst.cxx index 22a3975ab3a6..4f165e8e6e4f 100644 --- a/vcl/generic/app/geninst.cxx +++ b/vcl/generic/app/geninst.cxx @@ -116,7 +116,10 @@ bool SalGenericInstance::CheckYieldMutex() SalYieldMutex* pYieldMutex = mpSalYieldMutex; if ( pYieldMutex->GetThreadId() != osl::Thread::getCurrentIdentifier() ) + { + SAL_WARN_IF( pYieldMutex->GetThreadId() != osl::Thread::getCurrentIdentifier(), "sw", "CheckYieldMutex: " << pYieldMutex->GetThreadId() << "!=" << osl::Thread::getCurrentIdentifier() ); bRet = false; + } return bRet; } |