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
b11926a7
Kaydet (Commit)
b11926a7
authored
Eki 06, 2000
tarafından
Daniel Boelzle
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
avoid use of global mutex
üst
52308925
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
5 deletions
+22
-5
implbase.hxx
cppuhelper/inc/cppuhelper/implbase.hxx
+5
-3
implbase.cxx
cppuhelper/source/implbase.cxx
+17
-2
No files found.
cppuhelper/inc/cppuhelper/implbase.hxx
Dosyayı görüntüle @
b11926a7
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: implbase.hxx,v $
* $RCSfile: implbase.hxx,v $
*
*
* $Revision: 1.
1.1.1
$
* $Revision: 1.
2
$
*
*
* last change: $Author:
hr $ $Date: 2000-09-18 15:26
:09 $
* last change: $Author:
dbo $ $Date: 2000-10-06 15:15
:09 $
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -109,6 +109,8 @@ struct ClassData : public ClassDataBase
...
@@ -109,6 +109,8 @@ struct ClassData : public ClassDataBase
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
SAL_CALL
getImplementationId
();
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
SAL_CALL
getImplementationId
();
};
};
//==================================================================================================
::
osl
::
Mutex
&
SAL_CALL
getImplHelperInitMutex
(
void
);
}
}
//
//
...
@@ -136,7 +138,7 @@ protected: \
...
@@ -136,7 +138,7 @@ protected: \
ClassData & rCD = * static_cast< ClassData * >( &s_aCD ); \
ClassData & rCD = * static_cast< ClassData * >( &s_aCD ); \
if (! rCD.bOffsetsInit) \
if (! rCD.bOffsetsInit) \
{ \
{ \
::osl::MutexGuard aGuard(
::osl::Mutex::getGlobal
Mutex() ); \
::osl::MutexGuard aGuard(
getImplHelperInit
Mutex() ); \
if (! rCD.bOffsetsInit) \
if (! rCD.bOffsetsInit) \
{ \
{ \
char * pBase = (char *)this;
char * pBase = (char *)this;
...
...
cppuhelper/source/implbase.cxx
Dosyayı görüntüle @
b11926a7
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: implbase.cxx,v $
* $RCSfile: implbase.cxx,v $
*
*
* $Revision: 1.
1.1.1
$
* $Revision: 1.
2
$
*
*
* last change: $Author:
hr $ $Date: 2000-09-18 15:26:10
$
* last change: $Author:
dbo $ $Date: 2000-10-06 15:15:09
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -79,6 +79,21 @@ using namespace com::sun::star::lang;
...
@@ -79,6 +79,21 @@ using namespace com::sun::star::lang;
namespace
cppu
namespace
cppu
{
{
//==================================================================================================
Mutex
&
SAL_CALL
getImplHelperInitMutex
(
void
)
{
static
Mutex
*
s_pMutex
=
0
;
if
(
!
s_pMutex
)
{
MutexGuard
aGuard
(
Mutex
::
getGlobalMutex
()
);
if
(
!
s_pMutex
)
{
static
Mutex
s_aMutex
;
s_pMutex
=
&
s_aMutex
;
}
}
return
*
s_pMutex
;
}
// ClassDataBase
// ClassDataBase
//__________________________________________________________________________________________________
//__________________________________________________________________________________________________
...
...
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