diff options
author | Ian Lance Taylor <iant@google.com> | 2008-02-28 19:46:06 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-02-28 19:46:06 +0000 |
commit | da769d5629564b82d4eec1b256ffc562d5c01624 (patch) | |
tree | c575a166927823074cd07dad6347b0e90072340f /gold/token.h | |
parent | a7dfd0102bbf259cad78b322915523adb366837a (diff) | |
download | gdb-da769d5629564b82d4eec1b256ffc562d5c01624.zip gdb-da769d5629564b82d4eec1b256ffc562d5c01624.tar.gz gdb-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.h | 10 |
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* |