Fix bug in queue_task function in local scheduler. (#443)

This commit is contained in:
Robert Nishihara 2017-04-09 19:34:43 -07:00 committed by Stephanie Wang
parent f4c1adae17
commit c9d66555e2

View file

@ -672,7 +672,7 @@ std::list<TaskQueueEntry>::iterator queue_task(
task_queue->push_back(*task_entry); task_queue->push_back(*task_entry);
/* Since we just queued the task, we can get a reference to it by going to /* Since we just queued the task, we can get a reference to it by going to
* the last element in the queue. */ * the last element in the queue. */
auto it = state->algorithm_state->waiting_task_queue->end(); auto it = task_queue->end();
--it; --it;
/* The task has been added to a local scheduler queue. Write the entry in the /* The task has been added to a local scheduler queue. Write the entry in the