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
1a1024a0
Kaydet (Commit)
1a1024a0
authored
Haz 16, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove double mutex
üst
8719f4dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
app.hxx
sfx2/inc/sfx2/app.hxx
+0
-1
app.cxx
sfx2/source/appl/app.cxx
+7
-12
No files found.
sfx2/inc/sfx2/app.hxx
Dosyayı görüntüle @
1a1024a0
...
...
@@ -138,7 +138,6 @@ class SfxObjectShellLock;
class
SFX2_DLLPUBLIC
SfxApplication
:
public
SfxShell
{
SAL_DLLPRIVATE
static
::
osl
::
Mutex
gMutex
;
SAL_DLLPRIVATE
static
SfxApplication
*
pApp
;
SfxAppData_Impl
*
pAppData_Impl
;
...
...
sfx2/source/appl/app.cxx
Dosyayı görüntüle @
1a1024a0
...
...
@@ -260,6 +260,9 @@ namespace
class
thePropertyHandler
:
public
rtl
::
Static
<
SfxPropertyHandler
,
thePropertyHandler
>
{};
class
theApplicationMutex
:
public
rtl
::
Static
<
osl
::
Mutex
,
theApplicationMutex
>
{};
}
#include <framework/imageproducer.hxx>
...
...
@@ -268,23 +271,15 @@ namespace
#include "sfx2/imagemgr.hxx"
#include "fwkhelper.hxx"
::
osl
::
Mutex
SfxApplication
::
gMutex
;
SfxApplication
*
SfxApplication
::
GetOrCreate
()
{
// SFX on demand
::
osl
::
MutexGuard
aGuard
(
SfxApplication
::
gMutex
);
if
(
!
pApp
)
::
osl
::
MutexGuard
aGuard
(
theApplicationMutex
::
get
()
);
if
(
!
pApp
)
{
SfxApplication
*
pNew
=
new
SfxApplication
;
//TODO/CLEANUP
// Is the Mutex-Handling OK?
static
::
osl
::
Mutex
aProtector
;
::
osl
::
MutexGuard
aGuard2
(
aProtector
);
RTL_LOGFILE_CONTEXT
(
aLog
,
"sfx2 (mb93783) ::SfxApplication::SetApp"
);
pApp
=
pNew
;
pApp
=
new
SfxApplication
;
// at the moment a bug may occur when Initialize_Impl returns FALSE,
// but this is only temporary because all code that may cause such
...
...
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