dequeue also needs condition variables as parameters...