[gold patch] Fix thread cancellation problem

Ian Lance Taylor iant@google.com
Fri Jul 29 00:37:00 GMT 2011
Cary Coutant <ccoutant@google.com> writes:

> 	* 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 is OK.

Thanks.

Ian



More information about the Binutils mailing list