Add a basic pthread mutex queue
Improve queue interface
improve queue interface