array blocking queue in c++11