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
f6e4de5a
Kaydet (Commit)
f6e4de5a
authored
Mar 17, 2017
tarafından
Chris Sherlock
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
osl: add code tags to doublecheckedlocking.h
Change-Id: I4218e710a10e5f6f4b44149603beadf3390b6102
üst
ece792ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
doublecheckedlocking.h
include/osl/doublecheckedlocking.h
+2
-0
No files found.
include/osl/doublecheckedlocking.h
Dosyayı görüntüle @
f6e4de5a
...
...
@@ -43,6 +43,7 @@ extern "C" {
compiler errors), though, and you should always call this macro at the
right places then:
@code{.cpp}
static T * pInstance = 0;
T * p = pInstance;
...
...
@@ -60,6 +61,7 @@ extern "C" {
else
OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
return p;
@endcode
One extra advantage of this macro is that it makes it easier to find all
places where double-checked locking is used.
...
...
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