moved lock/unlock in queue_process_entry

The only time queue_process_entry should lock the queue gard is when it
is removing the item from the queue.  This happens only when the item
was successfully processed.
This commit is contained in:
William Hubbs 2009-06-25 12:06:51 -05:00
commit 0bf2cae5a6

View file

@ -179,10 +179,11 @@ static void queue_process_entry(struct synth_t *s)
break;
}
pthread_mutex_lock(&queue_guard);
if (error == EE_OK)
if (error == EE_OK) {
pthread_mutex_lock(&queue_guard);
queue_remove();
pthread_mutex_unlock(&queue_guard);
pthread_mutex_unlock(&queue_guard);
}
}
}