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
This commit is contained in:
parent
2063e14c15
commit
c6e19bfbba
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user