* workqueue-internal.h (Workqueue_threader::should_cancel_thread):
authorCary Coutant <ccoutant@google.com>
Thu, 28 Jul 2011 23:25:06 +0000 (23:25 +0000)
committerCary Coutant <ccoutant@google.com>
Thu, 28 Jul 2011 23:25:06 +0000 (23:25 +0000)
commitdcd8d12e1c020d87f7d3920438cf7327eb886008
tree07df900db4681ba52b6ce1365e9f9b70e2afe40f
parenta27e437177412e5b52999723f3c5d5d0d37b9087
* workqueue-internal.h (Workqueue_threader::should_cancel_thread):
Add thread_number parameter.
(Workqueue_threader_threadpool::should_cancel_thread): Likewise.
* workqueue-threads.cc
(Workqueue_threader_threadpool::should_cancel_thread): Cancel
current thread if its thread number is greater than desired thread
count.
* workqueue.cc (Workqueue_threader_single::should_cancel_thread):
Add thread_number parameter.
(Workqueue::should_cancel_thread): Likewise.
(Workqueue::find_runnable_or_wait): Pass thread_number to
should_cancel_thread.
* workqueue.h (Workqueue::should_cancel_thread): Add thread_number
parameter.
gold/ChangeLog
gold/workqueue-internal.h
gold/workqueue-threads.cc
gold/workqueue.cc
gold/workqueue.h