Quectel interview question

Design a thread-safe queue in C++ and explain your locking strategy.