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-26 19:29:07 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-26 19:29:07 +0000
commit0d02a5f10d50dee16267a781ddb40aa2df47171f (patch)
treedf0ca4439e611282ef4d2886f8b00aea87f7c8d5 /base/ref_counted.h
parent33124014399f72fe1e780e7a9b12505d3a840b6b (diff)
downloadchromium_src-0d02a5f10d50dee16267a781ddb40aa2df47171f.zip
chromium_src-0d02a5f10d50dee16267a781ddb40aa2df47171f.tar.gz
chromium_src-0d02a5f10d50dee16267a781ddb40aa2df47171f.tar.bz2
Add thread safety checks but keep them disabled for now until I fix all the current places where it triggers.
Fix thread_collision_warner for real this (third?) time. Review URL: http://codereview.chromium.org/18569 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8650 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);
};