Move Process to storing Threads in a linked list.
This should really be a vector or hashmap of some sort but this is fine for now.
This commit is contained in:
parent
5cab9f843e
commit
9f3ffbf5b4
4 changed files with 19 additions and 34 deletions
|
|
@ -76,6 +76,10 @@ class LinkedList {
|
|||
Iterator(ListItem* item) : item_(item) {}
|
||||
|
||||
Iterator next() { return {item_->next}; }
|
||||
Iterator& operator++() {
|
||||
item_ = item_->next;
|
||||
return *this;
|
||||
}
|
||||
|
||||
T& operator*() { return item_->item; }
|
||||
T& operator->() { return item_->item; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue