summaryrefslogtreecommitdiff
path: root/gold/token.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-28 19:46:06 +0000
committerIan Lance Taylor <iant@google.com>2008-02-28 19:46:06 +0000
commitdf98aa41bf1733a614681e6ddf989bbefe51df8f (patch)
treefbf8b8d2bf86ec79d592d79ae5a8c969e1bd3181 /gold/token.h
parentfb7119c928e0174a21f3f0673b5e8fa83b07811e (diff)
downloadbinutils-redhat-df98aa41bf1733a614681e6ddf989bbefe51df8f.tar.gz
Read input scripts which look like input objects with proper
serialization.
Diffstat (limited to 'gold/token.h')
-rw-r--r--gold/token.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gold/token.h b/gold/token.h
index 49a7d51ac7..6c99441ddf 100644
--- a/gold/token.h
+++ b/gold/token.h
@@ -48,6 +48,10 @@ class Task_list
empty() const
{ return this->head_ == NULL; }
+ // Add T to the head of the list.
+ void
+ push_front(Task* t);
+
// Add T to the end of the list.
void
push_back(Task* t);
@@ -166,6 +170,12 @@ class Task_token
add_waiting(Task* t)
{ this->waiting_.push_back(t); }
+ // Add T to the front of the list of tasks waiting for this token to
+ // be released.
+ void
+ add_waiting_front(Task* t)
+ { this->waiting_.push_front(t); }
+
// Remove the first Task waiting for this token to be released, and
// return it. Return NULL if no Tasks are waiting.
Task*