diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-07-06 08:21:42 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-07-06 08:21:42 +0000 |
commit | c90412c26ef6ec4bdd44bd3053044a50cec16f02 (patch) | |
tree | 94a3088309366b1edbff853a98daeebedfca300f /vcl | |
parent | 40a25b1367a35e53aa5add840feaae7fcb516b4a (diff) |
INTEGRATION: CWS vcl41 (1.17.78); FILE MERGED
2005/06/24 11:05:35 pl 1.17.78.1: #i48550# give up solar mutex in every Yield()
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk/app/gtkdata.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/vcl/unx/gtk/app/gtkdata.cxx b/vcl/unx/gtk/app/gtkdata.cxx index c93b6be287f0..3102122ff89c 100644 --- a/vcl/unx/gtk/app/gtkdata.cxx +++ b/vcl/unx/gtk/app/gtkdata.cxx @@ -2,9 +2,9 @@ * * $RCSfile: gtkdata.cxx,v $ * - * $Revision: 1.17 $ + * $Revision: 1.18 $ * - * last change: $Author: obo $ $Date: 2005-04-22 11:32:22 $ + * last change: $Author: obo $ $Date: 2005-07-06 09:21:42 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -687,18 +687,18 @@ void GtkXLib::Yield( BOOL bWait ) */ bool bDispatchThread = false; - if( osl_tryToAcquireMutex( m_aDispatchMutex ) ) - { - // we are the dispatch thread - osl_resetCondition( m_aDispatchCondition ); - bDispatchThread = true; - } - else if( ! bWait ) - return; // someone else is waiting already, return - { // release YieldMutex (and re-acquire at block end) YieldMutexReleaser aReleaser; + if( osl_tryToAcquireMutex( m_aDispatchMutex ) ) + { + // we are the dispatch thread + osl_resetCondition( m_aDispatchCondition ); + bDispatchThread = true; + } + else if( ! bWait ) + return; // someone else is waiting already, return + if( bDispatchThread ) g_main_context_iteration( NULL, bWait ); |