projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gas: NEWS: Add the RISC-V features for 2.39
[binutils-gdb.git]
/
gold
/
workqueue.cc
diff --git
a/gold/workqueue.cc
b/gold/workqueue.cc
index 6449bbad8462489d18f0ee63db4a4e1aeb97482d..b12f4a1221ac4a0101ac336e392c5f058db468bc 100644
(file)
--- a/
gold/workqueue.cc
+++ b/
gold/workqueue.cc
@@
-1,6
+1,6
@@
// workqueue.cc -- the workqueue for gold
// workqueue.cc -- the workqueue for gold
-// Copyright
2006, 2007, 2008
Free Software Foundation, Inc.
+// Copyright
(C) 2006-2022
Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
@@
-110,7
+110,7
@@
class Workqueue_threader_single : public Workqueue_threader
{ gold_assert(thread_count > 0); }
bool
{ gold_assert(thread_count > 0); }
bool
- should_cancel_thread()
+ should_cancel_thread(
int
)
{ return false; }
};
{ return false; }
};
@@
-202,9
+202,9
@@
Workqueue::queue_next(Task* t)
// Return whether to cancel the current thread.
inline bool
// 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.
}
// 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;
}
return NULL;
}
- if (this->should_cancel_thread())
+ if (this->should_cancel_thread(
thread_number
))
return NULL;
gold_debug(DEBUG_TASK, "%3d sleeping", thread_number);
return NULL;
gold_debug(DEBUG_TASK, "%3d sleeping", thread_number);