update blockqueue.h and blockqueue.cpp