pthread version of a thread safe queue
porting thread safe queue to glib instead of pthreads
porting thread safe queue to c++11 instead of glib