summaryrefslogtreecommitdiffstats
path: root/gold/common.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-12-14 19:00:21 +0000
committerIan Lance Taylor <iant@google.com>2007-12-14 19:00:21 +0000
commit17a1d0a9b26ce8f4f71073c41483baa0c10ed83b (patch)
tree3cdd95751145e2cf1cbcaedee2df8790c86b935d /gold/common.h
parent7004837e8d2e02ee35c50d236681e9c30a283619 (diff)
downloadppe42-binutils-17a1d0a9b26ce8f4f71073c41483baa0c10ed83b.tar.gz
ppe42-binutils-17a1d0a9b26ce8f4f71073c41483baa0c10ed83b.zip
Rewrite workqueue. This version eliminates the master thread, and
reduces the amount of locking required to find a new thread to run.
Diffstat (limited to 'gold/common.h')
-rw-r--r--gold/common.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/gold/common.h b/gold/common.h
index bd24985c9b..b85192e512 100644
--- a/gold/common.h
+++ b/gold/common.h
@@ -45,11 +45,11 @@ class Allocate_commons_task : public Task
// The standard Task methods.
- Is_runnable_type
- is_runnable(Workqueue*);
+ Task_token*
+ is_runnable();
- Task_locker*
- locks(Workqueue*);
+ void
+ locks(Task_locker*);
void
run(Workqueue*);
@@ -59,8 +59,6 @@ class Allocate_commons_task : public Task
{ return "Allocate_commons_task"; }
private:
- class Allocate_commons_locker;
-
const General_options& options_;
Symbol_table* symtab_;
Layout* layout_;
OpenPOWER on IntegriCloud