ThreadSafeQueue Implementation of a multi-producer and multi-consumer C++ 11 thread-safe queue. Based on: https://www.justsoftwaresolutions.co.uk/threading/implementing-a-thread-safe-queue-using-condition-variables.html https://juanchopanzacpp.wordpress.com/2013/02/26/concurrent-queue-c11/