So I created a queue designed to be thread-safe:
template class SafeQueue { public: SafeQueue(atomic& exit_requested) : q(),