Starting on sync object rewrite #3

This commit is contained in:
wheremyfoodat 2023-04-18 03:14:25 +03:00
parent 517d1abee8
commit c6c45408fe
4 changed files with 43 additions and 4 deletions

View file

@ -111,6 +111,7 @@ void Kernel::reset() {
for (auto& t : threads) {
t.status = ThreadStatus::Dead;
t.waitList.clear();
t.threadsWaitingForTermination = 0; // No threads are waiting for this thread to terminate cause it's dead
}
for (auto& object : objects) {