If this code is run by two threads, one pushing another popping, there is no need for locks protecting the queue.
Please log in to leave a comment.
If this code is run by two threads, one pushing another popping, there is no need for locks protecting the queue.