aboutsummaryrefslogtreecommitdiff
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
commitda769d5629564b82d4eec1b256ffc562d5c01624 (patch)
treec575a166927823074cd07dad6347b0e90072340f /gold/token.h
parenta7dfd0102bbf259cad78b322915523adb366837a (diff)
downloadbinutils-da769d5629564b82d4eec1b256ffc562d5c01624.zip
binutils-da769d5629564b82d4eec1b256ffc562d5c01624.tar.gz
binutils-da769d5629564b82d4eec1b256ffc562d5c01624.tar.bz2
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 49a7d51..6c99441 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*