summaryrefslogtreecommitdiffstats
path: root/base/ref_counted.h
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-16 17:30:01 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-16 17:30:01 +0000
commit2e1ef44951f2239bdc87c788ae6c6b781d2579c0 (patch)
tree3f83800add1ad593850a08f4210cdb9f2250e5a3 /base/ref_counted.h
parent58b049c17e1f5400735c12edfeb1e75a4dd2d92a (diff)
downloadchromium_src-2e1ef44951f2239bdc87c788ae6c6b781d2579c0.zip
chromium_src-2e1ef44951f2239bdc87c788ae6c6b781d2579c0.tar.gz
chromium_src-2e1ef44951f2239bdc87c788ae6c6b781d2579c0.tar.bz2
Add thread safety checks but keep them disabled for now until I fix all the current places
where it triggers. Set back StoreRef as non-thread-safe. BUG5689 Review URL: http://codereview.chromium.org/18272 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8180 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/ref_counted.h')
-rw-r--r--base/ref_counted.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/ref_counted.h b/base/ref_counted.h
index 2268808..853fa90 100644
--- a/base/ref_counted.h
+++ b/base/ref_counted.h
@@ -7,6 +7,7 @@
#include "base/atomic_ref_count.h"
#include "base/basictypes.h"
+#include "base/thread_collision_warner.h"
namespace base {
@@ -28,6 +29,8 @@ class RefCountedBase {
bool in_dtor_;
#endif
+ DFAKE_MUTEX(add_release_);
+
DISALLOW_COPY_AND_ASSIGN(RefCountedBase);
};