Remove task priority hack that is no longer needed
This commit is contained in:
parent
227767a425
commit
b026e82451
1 changed files with 2 additions and 3 deletions
|
|
@ -527,11 +527,10 @@ namespace fc {
|
||||||
|
|
||||||
if (!task_pqueue.empty())
|
if (!task_pqueue.empty())
|
||||||
{
|
{
|
||||||
if (task_pqueue.front()->_prio.value != priority::max().value &&
|
if (!ready_heap.empty())
|
||||||
!ready_heap.empty())
|
|
||||||
{
|
{
|
||||||
// a new task and an existing task are both ready to go
|
// 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
|
// run the existing task first
|
||||||
pt_push_back(current);
|
pt_push_back(current);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue