diff options
author | 2014-04-24 15:40:46 +0000 | |
---|---|---|
committer | 2014-04-24 15:40:46 +0000 | |
commit | 6d4e90a2d4c1dc807c7faaeb5ce9bafb3f10d7cc (patch) | |
tree | 0749345414debc493285d4bac4016332ce765fac | |
parent | 1d24eb20e77f0b291a6dcf6aa054b74f41fa1af2 (diff) |
teach TSAN about SkSpinlock, SkRefCnt, and SkOnce
BUG=skia:
Committed: http://code.google.com/p/skia/source/detail?r=14353
NOTRY=true
NOTREECHECKS=true
R=bsalomon@google.com, bungeman@google.com, mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/247813005
git-svn-id: http://skia.googlecode.com/svn/trunk@14354 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | include/core/SkRefCnt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h index 2ac68ddbcd..66ce066a71 100644 --- a/include/core/SkRefCnt.h +++ b/include/core/SkRefCnt.h @@ -107,7 +107,7 @@ protected: private: // OK for use in asserts, but not much else. - int32_t unsafeGetRefCnt() { return SK_ANNOTATE_UNPROTECTED_READ(fRefCnt); } + int32_t unsafeGetRefCnt() const { return SK_ANNOTATE_UNPROTECTED_READ(fRefCnt); } /** * Called when the ref count goes to 0. |