Commit c6e19bfb authored by vitalyr@chromium.org's avatar vitalyr@chromium.org

Follow up fixes for r9205: shared library build and thread deletion.

Review URL: http://codereview.chromium.org/7787013

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9206 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 2063e14c
......@@ -969,12 +969,14 @@ void ShellThread::Run() {
SourceGroup::~SourceGroup() {
#ifndef V8_SHARED
delete next_semaphore_;
next_semaphore_ = NULL;
delete done_semaphore_;
done_semaphore_ = NULL;
delete thread_;
thread_ = NULL;
#endif // V8_SHARED
}
......@@ -1078,7 +1080,6 @@ void SourceGroup::WaitForThread() {
if (thread_ == NULL) return;
if (Shell::options.last_run) {
thread_->Join();
thread_ = NULL;
} else {
done_semaphore_->Wait();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment