Reviewers: Hannes Payer,
Message:
Committed patchset #1 manually as r18382.
Description:
Always terminate the task queue
BUG=none
LOG=n
[email protected]
Committed: https://code.google.com/p/v8/source/detail?r=18382
Please review this at https://codereview.chromium.org/107503005/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+1, -1 lines):
M src/libplatform/default-platform.cc
Index: src/libplatform/default-platform.cc
diff --git a/src/libplatform/default-platform.cc
b/src/libplatform/default-platform.cc
index
72e6002c3f939551c6d2de7be125872d97c4acd9..1e21ca4e82379b6734d54e6d9f77b50bedab61e9
100644
--- a/src/libplatform/default-platform.cc
+++ b/src/libplatform/default-platform.cc
@@ -45,8 +45,8 @@ DefaultPlatform::DefaultPlatform()
DefaultPlatform::~DefaultPlatform() {
LockGuard<Mutex> guard(&lock_);
+ queue_.Terminate();
if (initialized_) {
- queue_.Terminate();
for (std::vector<WorkerThread*>::iterator i = thread_pool_.begin();
i != thread_pool_.end(); ++i) {
delete *i;
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.