mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-19 20:19:13 +12:00
Sync objects 0.1
This commit is contained in:
parent
182132cbb1
commit
41e01bbdd4
6 changed files with 66 additions and 21 deletions
|
@ -13,6 +13,7 @@ Kernel::Kernel(CPU& cpu, Memory& mem, GPU& gpu)
|
|||
threads[i].index = i;
|
||||
threads[i].tlsBase = VirtualAddrs::TLSBase + i * VirtualAddrs::TLSSize;
|
||||
threads[i].status = ThreadStatus::Dead;
|
||||
threads[i].waitList.reserve(10); // Reserve some space for the wait list to avoid further memory allocs later
|
||||
}
|
||||
|
||||
setVersion(1, 69);
|
||||
|
@ -101,6 +102,7 @@ void Kernel::reset() {
|
|||
|
||||
for (auto& t : threads) {
|
||||
t.status = ThreadStatus::Dead;
|
||||
t.waitList.clear();
|
||||
}
|
||||
|
||||
for (auto& object : objects) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue