| commit | 9f2a105aa1467224b662980f6d1c4a42e5d8bdfe | [log] |
|---|---|---|
| author | Stephan Bergmann <sbergman@redhat.com> | Wed Aug 09 12:14:28 2017 +0200 |
| committer | Stephan Bergmann <sbergman@redhat.com> | Wed Aug 09 12:14:28 2017 +0200 |
| tree | bacda3ae318770a7762896029b4f43f7d55ba7ad | |
| parent | 033a619c979e45d012e1ebe286462eb379997b41 [diff] |
Rephrase SchedulerMutex::acquire so it would work for nLockCount=0 Change-Id: Ibd5f45b5829e51f872e90a4256ae875bc5d363d4
diff --git a/vcl/source/app/scheduler.cxx b/vcl/source/app/scheduler.cxx index 26d904e..b08444d 100644 --- a/vcl/source/app/scheduler.cxx +++ b/vcl/source/app/scheduler.cxx
@@ -120,12 +120,11 @@ void Scheduler::ImplDeInitScheduler() bool SchedulerMutex::acquire( sal_uInt32 nLockCount ) { do { for (sal_uInt32 i = 0; i != nLockCount; ++i) { if ( !maMutex.acquire() ) return false; ++mnLockDepth; } while ( --nLockCount ); return true; }