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
80729c8f
Kaydet (Commit)
80729c8f
authored
Mar 13, 2011
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add a SolarMutexResettableGuard... needed in sfx2
üst
33186f9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
svapp.hxx
vcl/inc/vcl/svapp.hxx
+46
-0
No files found.
vcl/inc/vcl/svapp.hxx
Dosyayı görüntüle @
80729c8f
...
...
@@ -557,6 +557,52 @@ protected:
osl
::
SolarMutex
&
m_solarMutex
;
};
class
VCL_DLLPUBLIC
SolarMutexResettableGuard
{
SolarMutexResettableGuard
(
const
SolarMutexResettableGuard
&
);
const
SolarMutexResettableGuard
&
operator
=
(
const
SolarMutexResettableGuard
&
);
bool
m_bCleared
;
public
:
/** Acquires mutex
@param pMutex pointer to mutex which is to be acquired */
SolarMutexResettableGuard
()
:
m_bCleared
(
false
)
,
m_solarMutex
(
Application
::
GetSolarMutex
()
)
{
m_solarMutex
.
acquire
();
}
/** Releases mutex. */
virtual
~
SolarMutexResettableGuard
()
{
if
(
!
m_bCleared
)
{
m_solarMutex
.
release
();
}
}
/** Releases mutex. */
void
SAL_CALL
clear
()
{
if
(
!
m_bCleared
)
{
m_solarMutex
.
release
();
m_bCleared
=
true
;
}
}
/** Releases mutex. */
void
SAL_CALL
reset
()
{
if
(
m_bCleared
)
{
m_solarMutex
.
acquire
();
m_bCleared
=
false
;
}
}
protected
:
osl
::
SolarMutex
&
m_solarMutex
;
};
/**
A helper class that calls Application::ReleaseSolarMutex() in its constructor
...
...
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