Fix state switching

This commit is contained in:
Baptiste Wicht 2014-01-28 21:15:05 +01:00
parent c16b3e39cf
commit e66e92ae5b
2 changed files with 17 additions and 1 deletions

View File

@ -84,6 +84,22 @@ public:
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
void push_back(value_type&& element){

View File

@ -197,5 +197,5 @@ void scheduler::queue_process(process_t&& p){
processes.push_back(std::forward<scheduler::process_t>(p));
rounds.push_back(0);
p.state = process_state::READY;
processes.back().state = process_state::READY;
}