Commit 3f04182c authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

remove debugging code.


Former-commit-id: 078426fee6f75ec742c9435c44607d0408797cce
parent 6e4ceaa3
......@@ -161,7 +161,7 @@ void queue_init ( struct queue *q , struct task *tasks ) {
struct task *queue_gettask ( struct queue *q , int qid , int blocking ) {
int k, kk, i, temp, qcount, *qtid, type;
int k, i, temp, qcount, *qtid, type;
lock_type *qlock = &q->lock;
struct task *qtasks, *res = NULL;
struct cell *ci, *cj;
......@@ -233,8 +233,6 @@ struct task *queue_gettask ( struct queue *q , int qid , int blocking ) {
cj->super->owner = qid;
/* Swap this task with the last task and re-heap. */
kk = k;
k = kk;
if ( k < qcount ) {
qtid[ k ] = qtid[ qcount ];
while ( qtasks[ qtid[k] ].weight > qtasks[ qtid[(k-1)/2] ].weight ) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment