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
29d1303e
Kaydet (Commit)
29d1303e
authored
Kas 05, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use atomic increment and decrement for thread-safe reference count.
Change-Id: I630298b1c37a6d23c1aa17aabc1c9b2dcb48608a
üst
1d996cee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
token.hxx
include/formula/token.hxx
+13
-6
No files found.
include/formula/token.hxx
Dosyayı görüntüle @
29d1303e
...
...
@@ -29,6 +29,7 @@
#include "formula/formuladllapi.h"
#include "formula/types.hxx"
#include "svl/sharedstring.hxx"
#include "osl/interlck.h"
namespace
formula
{
...
...
@@ -107,12 +108,18 @@ public:
bool
IsFunction
()
const
;
// pure functions, no operators
bool
IsExternalRef
()
const
;
sal_uInt8
GetParamCount
()
const
;
inline
void
IncRef
()
const
{
nRefCnt
++
;
}
inline
void
DecRef
()
const
{
if
(
!--
nRefCnt
)
const_cast
<
FormulaToken
*>
(
this
)
->
Delete
();
}
inline
void
IncRef
()
const
{
osl_atomic_increment
(
&
nRefCnt
);
}
inline
void
DecRef
()
const
{
if
(
!
osl_atomic_decrement
(
&
nRefCnt
))
const_cast
<
FormulaToken
*>
(
this
)
->
Delete
();
}
inline
sal_uInt16
GetRef
()
const
{
return
nRefCnt
;
}
inline
OpCode
GetOpCode
()
const
{
return
eOp
;
}
...
...
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