summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-04-12 14:42:43 +0200
committerMichael Stahl <mstahl@redhat.com>2016-04-12 15:17:03 +0200
commitedac93859ba8b6446dce08b0cffb9def3d9ff182 (patch)
treef2d3ac59e379a52b457daac6c76fa49ae200f2f8 /vcl
parent6f047b5866ee7c3f707a4f12ef9f95e7dbdb6e93 (diff)
vcl: simplify WNT SalYieldMutex::release() a bit
The ordering between clearing mnThreadId and OpenGLContext shouldn't matter since it was already inconsistent. Change-Id: I0b7b6457547e9e38527de58ba062fd7092178056
Diffstat (limited to 'vcl')
-rw-r--r--vcl/win/app/salinst.cxx13
1 files changed, 4 insertions, 9 deletions
diff --git a/vcl/win/app/salinst.cxx b/vcl/win/app/salinst.cxx
index f47e5d86e406..d55fa70921e0 100644
--- a/vcl/win/app/salinst.cxx
+++ b/vcl/win/app/salinst.cxx
@@ -147,25 +147,20 @@ void SalYieldMutex::release()
m_mutex.release();
else
{
- bool isRelease(1 == mnCount);
+ bool const isRelease(1 == mnCount);
if ( isRelease )
{
+ OpenGLContext::prepareForYield();
+
SalData* pSalData = GetSalData();
if ( pSalData->mnAppThreadId != nThreadId )
{
- OpenGLContext::prepareForYield();
-
// If we don't call these message, the Output from the
// Java clients doesn't come in the right order
GdiFlush();
- mnThreadId = 0;
- }
- else
- {
- mnThreadId = 0;
- OpenGLContext::prepareForYield();
}
+ mnThreadId = 0;
}
mnCount--;