| 56 | } |
| 57 | |
| 58 | void Remove(thread_t* thread) final { |
| 59 | for(auto it = sleeping.begin(); it != sleeping.end(); it++){ |
| 60 | SleepCounter& cnt = *it; |
| 61 | if(cnt.thread == thread){ |
| 62 | auto next = it; |
| 63 | next++; |
| 64 | |
| 65 | next->ticksLeft += cnt.ticksLeft; |
| 66 | |
| 67 | sleeping.remove(it); |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | }; |
| 72 | |
| 73 | uint64_t GetSystemUptime(){ |
no test coverage detected