summaryrefslogtreecommitdiffstats
path: root/base/simple_thread.cc
diff options
context:
space:
mode:
authordeanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-22 17:08:36 +0000
committerdeanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-22 17:08:36 +0000
commitd35df912a93adafcea593382ff12d0a6a15a9f48 (patch)
tree1543e49951e72b08a76cda3c41fe97c17edbbe57 /base/simple_thread.cc
parent781ff1569b156fd315cea32707334454af6b3704 (diff)
downloadchromium_src-d35df912a93adafcea593382ff12d0a6a15a9f48.zip
chromium_src-d35df912a93adafcea593382ff12d0a6a15a9f48.tar.gz
chromium_src-d35df912a93adafcea593382ff12d0a6a15a9f48.tar.bz2
Make CallWrappers multiuse. No longer make CallWrapper->Run() self deleting. Since the SimpleThread API backs to joinable threads, the common use case makes it simple for the caller to manage the CallWrapper memory, and this makes everything much clearer. This also allows a CallWrapper's Run() to be called multiple times. This also moves CallWrapper into the base namespace, which I'm told is all the rage these days.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1224 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/simple_thread.cc')
-rw-r--r--base/simple_thread.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/base/simple_thread.cc b/base/simple_thread.cc
index 797843d..1d88dada 100644
--- a/base/simple_thread.cc
+++ b/base/simple_thread.cc
@@ -75,8 +75,4 @@ void CallWrapperSimpleThread::Run() {
wrapper_ = NULL;
}
-CallWrapperSimpleThread::~CallWrapperSimpleThread() {
- DCHECK(!wrapper_) << "CallWrapper was never released.";
-}
-
} // namespace base