Kaydet (Commit) edac9385 authored tarafından Michael Stahl's avatar Michael Stahl

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
üst 6f047b58
...@@ -147,25 +147,20 @@ void SalYieldMutex::release() ...@@ -147,25 +147,20 @@ void SalYieldMutex::release()
m_mutex.release(); m_mutex.release();
else else
{ {
bool isRelease(1 == mnCount); bool const isRelease(1 == mnCount);
if ( isRelease ) if ( isRelease )
{ {
OpenGLContext::prepareForYield();
SalData* pSalData = GetSalData(); SalData* pSalData = GetSalData();
if ( pSalData->mnAppThreadId != nThreadId ) if ( pSalData->mnAppThreadId != nThreadId )
{ {
OpenGLContext::prepareForYield();
// If we don't call these message, the Output from the // If we don't call these message, the Output from the
// Java clients doesn't come in the right order // Java clients doesn't come in the right order
GdiFlush(); GdiFlush();
mnThreadId = 0;
}
else
{
mnThreadId = 0;
OpenGLContext::prepareForYield();
} }
mnThreadId = 0;
} }
mnCount--; mnCount--;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment