X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gold%2Fworkqueue.h;h=96ceb4c58df47c92e7934a280c734eba27ac4b2b;hb=567dfba2bed4bce68a13b0c8963dec9605dea6c8;hp=75452241d80515f3d3dc6f2eff810c4ad25cf91c;hpb=2ea97941102380c28117882600265c1187c6fc8b;p=deliverable%2Fbinutils-gdb.git diff --git a/gold/workqueue.h b/gold/workqueue.h index 75452241d8..96ceb4c58d 100644 --- a/gold/workqueue.h +++ b/gold/workqueue.h @@ -1,6 +1,6 @@ // workqueue.h -- the work queue for gold -*- C++ -*- -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2020 Free Software Foundation, Inc. // Written by Ian Lance Taylor . // This file is part of gold. @@ -152,7 +152,7 @@ class Task_function : public Task Task_function(Task_function_runner* runner, Task_token* blocker, const char* name) : runner_(runner), blocker_(blocker), name_(name) - { } + { gold_assert(blocker != NULL); } ~Task_function() { @@ -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.