mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-17 08:37:17 -04:00
Fix state switching
This commit is contained in:
parent
c16b3e39cf
commit
e66e92ae5b
@ -84,6 +84,22 @@ public:
|
|||||||
return data[pos];
|
return data[pos];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
value_type& front(){
|
||||||
|
return data[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
const value_type& front() const {
|
||||||
|
return data[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
value_type& back(){
|
||||||
|
return data[size() - 1];
|
||||||
|
}
|
||||||
|
|
||||||
|
const value_type& back() const {
|
||||||
|
return data[size() - 1];
|
||||||
|
}
|
||||||
|
|
||||||
//Modifiers
|
//Modifiers
|
||||||
|
|
||||||
void push_back(value_type&& element){
|
void push_back(value_type&& element){
|
||||||
|
@ -197,5 +197,5 @@ void scheduler::queue_process(process_t&& p){
|
|||||||
processes.push_back(std::forward<scheduler::process_t>(p));
|
processes.push_back(std::forward<scheduler::process_t>(p));
|
||||||
rounds.push_back(0);
|
rounds.push_back(0);
|
||||||
|
|
||||||
p.state = process_state::READY;
|
processes.back().state = process_state::READY;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user