Quectel Interview Question

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