X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gold%2Fworkqueue.h;h=2047620d4b8e37d621d0de127f9a42ae8fb2b7e3;hb=abdb711e0855f0597a96db0486b598144b788212;hp=75452241d80515f3d3dc6f2eff810c4ad25cf91c;hpb=15f8229bbf3f6fff866cbc04b07ddde9f6e41941;p=deliverable%2Fbinutils-gdb.git diff --git a/gold/workqueue.h b/gold/workqueue.h index 75452241d8..2047620d4b 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-2019 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.