scheduler: Use heap to determine highest priority thread

This commit is contained in:
Pawel Dziepak
2013-12-29 19:24:01 +01:00
parent 484e5c737f
commit a47974dd06
2 changed files with 32 additions and 21 deletions
+2 -2
View File
@@ -78,7 +78,7 @@ public:
Heap(int initialSize);
~Heap();
inline Element* PeekRoot();
inline Element* PeekRoot() const;
static const Key& GetKey(Element* element);
@@ -188,7 +188,7 @@ HEAP_CLASS_NAME::~Heap()
HEAP_TEMPLATE_LIST
Element*
HEAP_CLASS_NAME::PeekRoot()
HEAP_CLASS_NAME::PeekRoot() const
{
if (fLastElement > 0)
return fElements[0];