Remove task priority hack that is no longer needed

This commit is contained in:
Eric Frias 2014-10-17 12:04:21 -04:00
parent 227767a425
commit b026e82451

View file

@ -527,11 +527,10 @@ namespace fc {
if (!task_pqueue.empty())
{
if (task_pqueue.front()->_prio.value != priority::max().value &&
!ready_heap.empty())
if (!ready_heap.empty())
{
// a new task and an existing task are both ready to go
if (task_priority_less()(ready_heap.front(), task_pqueue.front()))
if (task_priority_less()(task_pqueue.front(), ready_heap.front()))
{
// run the existing task first
pt_push_back(current);