X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gold%2Fworkqueue.cc;h=e78e86b9ecc9cab29cbb9f4ae917135268d66751;hb=c3d399e712774f8c8e4cd6b6a5bb8230c42bc760;hp=6449bbad8462489d18f0ee63db4a4e1aeb97482d;hpb=3e1b9a8a685612a610e7b54e7699377d964f3153;p=deliverable%2Fbinutils-gdb.git diff --git a/gold/workqueue.cc b/gold/workqueue.cc index 6449bbad84..e78e86b9ec 100644 --- a/gold/workqueue.cc +++ b/gold/workqueue.cc @@ -110,7 +110,7 @@ class Workqueue_threader_single : public Workqueue_threader { gold_assert(thread_count > 0); } bool - should_cancel_thread() + should_cancel_thread(int) { return false; } }; @@ -202,9 +202,9 @@ Workqueue::queue_next(Task* t) // Return whether to cancel the current thread. inline bool -Workqueue::should_cancel_thread() +Workqueue::should_cancel_thread(int thread_number) { - return this->threader_->should_cancel_thread(); + return this->threader_->should_cancel_thread(thread_number); } // Find a runnable task in TASKS. Return NULL if none could be found. @@ -264,7 +264,7 @@ Workqueue::find_runnable_or_wait(int thread_number) return NULL; } - if (this->should_cancel_thread()) + if (this->should_cancel_thread(thread_number)) return NULL; gold_debug(DEBUG_TASK, "%3d sleeping", thread_number);