void *get(void *t) { for(int i = 0; i < 20; i++) cout << "-- " << myqueue.pop(1000) << endl; //cout << "-- " << myqueue.pop() << endl; pthread_exit(NULL); return NULL; }