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
ed316fc6
Kaydet (Commit)
ed316fc6
authored
Şub 21, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
osl_atomic_increment/decrement are macros
Change-Id: I3a294c5c800597f3b17395e1e02944f5279e3753
üst
712b33cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
iafactory.cxx
stoc/source/invocation_adapterfactory/iafactory.cxx
+2
-2
access_controller.cxx
stoc/source/security/access_controller.cxx
+2
-2
No files found.
stoc/source/invocation_adapterfactory/iafactory.cxx
Dosyayı görüntüle @
ed316fc6
...
...
@@ -191,7 +191,7 @@ inline AdapterImpl::~AdapterImpl()
inline
void
AdapterImpl
::
acquire
()
SAL_THROW
(())
{
::
osl_atomic_increment
(
&
m_nRef
);
osl_atomic_increment
(
&
m_nRef
);
}
//______________________________________________________________________________
inline
void
AdapterImpl
::
release
()
...
...
@@ -200,7 +200,7 @@ inline void AdapterImpl::release()
bool
delete_this
=
false
;
{
MutexGuard
guard
(
m_pFactory
->
m_mutex
);
if
(
!
::
osl_atomic_decrement
(
&
m_nRef
))
if
(
!
osl_atomic_decrement
(
&
m_nRef
))
{
t_ptr_map
::
iterator
iFind
(
m_pFactory
->
m_receiver2adapters
.
find
(
m_key
)
);
...
...
stoc/source/security/access_controller.cxx
Dosyayı görüntüle @
ed316fc6
...
...
@@ -300,13 +300,13 @@ acc_CurrentContext::~acc_CurrentContext()
void
acc_CurrentContext
::
acquire
()
throw
()
{
::
osl_atomic_increment
(
&
m_refcount
);
osl_atomic_increment
(
&
m_refcount
);
}
//__________________________________________________________________________________________________
void
acc_CurrentContext
::
release
()
throw
()
{
if
(
!
::
osl_atomic_decrement
(
&
m_refcount
))
if
(
!
osl_atomic_decrement
(
&
m_refcount
))
{
delete
this
;
}
...
...
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