From b026e824510ccb4f4caad5a4b4a2d7566f96c8c1 Mon Sep 17 00:00:00 2001 From: Eric Frias Date: Fri, 17 Oct 2014 12:04:21 -0400 Subject: [PATCH] Remove task priority hack that is no longer needed --- src/thread/thread_d.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/thread/thread_d.hpp b/src/thread/thread_d.hpp index e3635f9..5b357d2 100644 --- a/src/thread/thread_d.hpp +++ b/src/thread/thread_d.hpp @@ -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);