summaryrefslogtreecommitdiff
path: root/gold/workqueue-internal.h
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2011-07-28 23:25:06 +0000
committerCary Coutant <ccoutant@google.com>2011-07-28 23:25:06 +0000
commitdcd8d12e1c020d87f7d3920438cf7327eb886008 (patch)
tree07df900db4681ba52b6ce1365e9f9b70e2afe40f /gold/workqueue-internal.h
parenta27e437177412e5b52999723f3c5d5d0d37b9087 (diff)
* 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.
Diffstat (limited to 'gold/workqueue-internal.h')
-rw-r--r--gold/workqueue-internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/workqueue-internal.h b/gold/workqueue-internal.h
index 684c65ba07..764dc91b3d 100644
--- a/gold/workqueue-internal.h
+++ b/gold/workqueue-internal.h
@@ -56,7 +56,7 @@ class Workqueue_threader
// Return whether to cancel the current thread.
virtual bool
- should_cancel_thread() = 0;
+ should_cancel_thread(int thread_number) = 0;
protected:
// Get the Workqueue.
@@ -84,7 +84,7 @@ class Workqueue_threader_threadpool : public Workqueue_threader
// Return whether to cancel a thread.
bool
- should_cancel_thread();
+ should_cancel_thread(int thread_number);
// Process all tasks. This keeps running until told to cancel.
void