Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
ee47dfa4
Kaydet (Commit)
ee47dfa4
authored
May 14, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
LockHelper::getGlobalLock is never called with an argument
Change-Id: I90b431345d791c887f9047258a6f439bcf222784
üst
4af8a94a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
lockhelper.hxx
framework/inc/threadhelp/lockhelper.hxx
+4
-1
lockhelper.cxx
framework/source/fwi/threadhelp/lockhelper.cxx
+2
-2
No files found.
framework/inc/threadhelp/lockhelper.hxx
Dosyayı görüntüle @
ee47dfa4
...
@@ -89,7 +89,10 @@ class FWI_DLLPUBLIC LockHelper : public IMutex
...
@@ -89,7 +89,10 @@ class FWI_DLLPUBLIC LockHelper : public IMutex
//-------------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------
// something else
// something else
//-------------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------
static
LockHelper
&
getGlobalLock
(
comphelper
::
SolarMutex
*
pSolarMutex
=
NULL
);
static
LockHelper
&
getGlobalLock
();
//TODO: this presumable should return the SolarMutex, though it
// actually returns some independent mutex
::
osl
::
Mutex
&
getShareableOslMutex
(
);
::
osl
::
Mutex
&
getShareableOslMutex
(
);
//-------------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------
...
...
framework/source/fwi/threadhelp/lockhelper.cxx
Dosyayı görüntüle @
ee47dfa4
...
@@ -257,7 +257,7 @@ void LockHelper::downgradeWriteAccess()
...
@@ -257,7 +257,7 @@ void LockHelper::downgradeWriteAccess()
@onerror No error should occure.
@onerror No error should occure.
*//*-*************************************************************************************************************/
*//*-*************************************************************************************************************/
LockHelper
&
LockHelper
::
getGlobalLock
(
comphelper
::
SolarMutex
*
pSolarMutex
)
LockHelper
&
LockHelper
::
getGlobalLock
()
{
{
// Initialize static "member" only for one time!
// Initialize static "member" only for one time!
// Algorithm:
// Algorithm:
...
@@ -274,7 +274,7 @@ LockHelper& LockHelper::getGlobalLock( comphelper::SolarMutex* pSolarMutex )
...
@@ -274,7 +274,7 @@ LockHelper& LockHelper::getGlobalLock( comphelper::SolarMutex* pSolarMutex )
::
osl
::
MutexGuard
aGuard
(
::
osl
::
Mutex
::
getGlobalMutex
()
);
::
osl
::
MutexGuard
aGuard
(
::
osl
::
Mutex
::
getGlobalMutex
()
);
if
(
pLock
==
NULL
)
if
(
pLock
==
NULL
)
{
{
static
LockHelper
aLock
(
pSolarMutex
)
;
static
LockHelper
aLock
;
pLock
=
&
aLock
;
pLock
=
&
aLock
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment