52c52
< runOnce(false), readyList(nullptr)
---
> runOnce(false)
157c157
< _current = readyList->getNext();
---
> _current = getNextReady();
269,274c269,270
< // We run methods and threads in two seperate passes to emulate how
< // Accellera orders things, but without having to scan through a
< // unified list to find the next process of the correct type.
< readyList = &readyListMethods;
< while (!readyListMethods.empty())
< yield();
---
> yield();
> } while (getNextReady());
276,282d271
< readyList = &readyListThreads;
< while (!readyListThreads.empty())
< yield();
<
< // We already know that readyListThreads is empty at this point.
< } while (!readyListMethods.empty());
<