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
f8853c9f
Kaydet (Commit)
f8853c9f
authored
May 17, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
valgrind: use non-leaky singleton pattern here
üst
3eaec7a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
dispatchwatcher.cxx
desktop/source/app/dispatchwatcher.cxx
+6
-9
dispatchwatcher.hxx
desktop/source/app/dispatchwatcher.hxx
+0
-2
No files found.
desktop/source/app/dispatchwatcher.cxx
Dosyayı görüntüle @
f8853c9f
...
...
@@ -63,6 +63,7 @@
#include <vector>
#include <osl/thread.hxx>
#include <rtl/instance.hxx>
using
::
rtl
::
OUString
;
using
namespace
::
osl
;
...
...
@@ -122,18 +123,14 @@ static OUString impl_GuessFilter( OUString aUrlIn, OUString aUrlOut )
return
impl_GetFilterFromExt
(
aUrlOut
,
SFX_FILTER_EXPORT
,
aAppl
);
}
Mutex
*
DispatchWatcher
::
pWatcherMutex
=
NULL
;
namespace
{
class
theWatcherMutex
:
public
rtl
::
Static
<
Mutex
,
theWatcherMutex
>
{};
}
Mutex
&
DispatchWatcher
::
GetMutex
()
{
if
(
!
pWatcherMutex
)
{
::
osl
::
MutexGuard
aGuard
(
::
osl
::
Mutex
::
getGlobalMutex
()
);
if
(
!
pWatcherMutex
)
pWatcherMutex
=
new
osl
::
Mutex
();
}
return
*
pWatcherMutex
;
return
theWatcherMutex
::
get
();
}
// Create or get the dispatch watcher implementation. This implementation must be
...
...
desktop/source/app/dispatchwatcher.hxx
Dosyayı görüntüle @
f8853c9f
...
...
@@ -118,8 +118,6 @@ class DispatchWatcher : public ::cppu::WeakImplHelper1< ::com::sun::star::frame:
DispatchWatcherHashMap
m_aRequestContainer
;
static
::
osl
::
Mutex
*
pWatcherMutex
;
sal_Int16
m_nRequestCount
;
};
...
...
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