mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-15 20:05:46 +08:00
Framework for relocation scanning. Implement simple static TLS
relocations.
This commit is contained in:
@ -192,6 +192,8 @@ Workqueue::~Workqueue()
|
||||
assert(this->running_ == 0);
|
||||
}
|
||||
|
||||
// Add a task to the queue.
|
||||
|
||||
void
|
||||
Workqueue::queue(Task* t)
|
||||
{
|
||||
@ -199,6 +201,15 @@ Workqueue::queue(Task* t)
|
||||
this->tasks_.push_back(t);
|
||||
}
|
||||
|
||||
// Add a task to the front of the queue.
|
||||
|
||||
void
|
||||
Workqueue::queue_front(Task* t)
|
||||
{
|
||||
Hold_lock hl(this->tasks_lock_);
|
||||
this->tasks_.push_front(t);
|
||||
}
|
||||
|
||||
// Clear the list of completed tasks. Return whether we cleared
|
||||
// anything. The completed_lock_ must be held when this is called.
|
||||
|
||||
|
Reference in New Issue
Block a user