diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-17 02:25:44 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-17 02:25:44 +0000 |
commit | 2d4537d50684e97458ca6d27e98e742533bb1141 (patch) | |
tree | 90141a594a60c4f55e512cacbe5ca736f7ee2354 /base/revocable_store.h | |
parent | 3b680a8b28f63a13f82fbb5e7324fba69c28d75d (diff) | |
download | chromium_src-2d4537d50684e97458ca6d27e98e742533bb1141.zip chromium_src-2d4537d50684e97458ca6d27e98e742533bb1141.tar.gz chromium_src-2d4537d50684e97458ca6d27e98e742533bb1141.tar.bz2 |
Adds a helper class used to mark/define critical section in a class and then install controls to check that those critical sections are not violated.
This CL is due the thread posted on chromium-dev:
http://groups.google.com/group/chromium-dev/browse_frm/thread/30af0b63b6adb245.
From Gaetano Mendola <mendola bigfoot com>
Review URL: http://codereview.chromium.org/8621
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7127 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/revocable_store.h')
-rw-r--r-- | base/revocable_store.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/revocable_store.h b/base/revocable_store.h index 65fb05e..2ee9705 100644 --- a/base/revocable_store.h +++ b/base/revocable_store.h @@ -17,7 +17,7 @@ class RevocableStore { // store wishes to revoke its items, it sets |store_| to null. Items are // permitted to release their reference to the |StoreRef| when they no longer // require the store. - class StoreRef : public base::RefCounted<StoreRef> { + class StoreRef : public base::RefCountedThreadSafe<StoreRef> { public: StoreRef(RevocableStore* store) : store_(store) { } |