Revision: 18382
Author:   joc...@chromium.org
Date:     Fri Dec 20 09:09:04 2013 UTC
Log:      Always terminate the task queue

BUG=none
LOG=n
TBR=hpa...@chromium.org

Review URL: https://codereview.chromium.org/107503005
http://code.google.com/p/v8/source/detail?r=18382

Modified:
 /branches/bleeding_edge/src/libplatform/default-platform.cc

=======================================
--- /branches/bleeding_edge/src/libplatform/default-platform.cc Fri Dec 20 08:34:42 2013 UTC +++ /branches/bleeding_edge/src/libplatform/default-platform.cc Fri Dec 20 09:09:04 2013 UTC
@@ -45,8 +45,8 @@

 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
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to