ubsan: xstormy16: left shift of negative value
[deliverable/binutils-gdb.git] / gold / workqueue.h
index a17ec9df6a5e8f52261354c34eddb42dc0f30007..2047620d4b8e37d621d0de127f9a42ae8fb2b7e3 100644 (file)
@@ -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 <iant@google.com>.
 
 // This file is part of gold.
@@ -150,9 +150,9 @@ class Task_function : public Task
   // RUNNER and BLOCKER should be allocated using new, and will be
   // deleted after the task runs.
   Task_function(Task_function_runner* runner, Task_token* blocker,
-               const char* tname)
-    : runner_(runner), blocker_(blocker), name_(tname)
-  { }
+               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.
This page took 0.024391 seconds and 4 git commands to generate.