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
baede5e8
Kaydet (Commit)
baede5e8
authored
Eyl 25, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ensure that osl_atomic_decrement gets called after osl_atomic_increment
Change-Id: If110d27950a4efd1a96dc5f2702f4dfbfe58bcbe
üst
e01a142c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
Connection.cxx
connectivity/source/drivers/firebird/Connection.cxx
+15
-3
No files found.
connectivity/source/drivers/firebird/Connection.cxx
Dosyayı görüntüle @
baede5e8
...
...
@@ -106,10 +106,24 @@ void SAL_CALL Connection::release() throw()
relase_ChildImpl
();
}
struct
ConnectionGuard
{
oslInterlockedCount
&
m_refCount
;
ConnectionGuard
(
oslInterlockedCount
&
refCount
)
:
m_refCount
(
refCount
)
{
osl_atomic_increment
(
&
m_refCount
);
}
~
ConnectionGuard
()
{
osl_atomic_decrement
(
&
m_refCount
);
}
};
void
Connection
::
construct
(
const
::
rtl
::
OUString
&
url
,
const
Sequence
<
PropertyValue
>&
info
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
osl_atomic_increment
(
&
m_refCount
);
ConnectionGuard
aGuard
(
m_refCount
);
try
{
...
...
@@ -308,8 +322,6 @@ void Connection::construct(const ::rtl::OUString& url, const Sequence< PropertyV
{
throw
std
::
runtime_error
(
"Generic Firebird::Exception"
);
}
osl_atomic_decrement
(
&
m_refCount
);
}
void
Connection
::
notifyDatabaseModified
()
...
...
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