* 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.
This commit is contained in:
Cary Coutant
2011-07-28 23:25:06 +00:00
parent a27e437177
commit dcd8d12e1c
5 changed files with 28 additions and 10 deletions

View File

@@ -268,7 +268,7 @@ class Workqueue
// Return whether to cancel this thread.
bool
should_cancel_thread();
should_cancel_thread(int thread_number);
// Master Workqueue lock. This controls access to the following
// member variables.