C++ (Qt)QList<MyBuff*> my_list;MyBuff *item=new MyBuff;my_list.append(item);
C++ (Qt)QList<MyBuff> my_list;MyBuff item;my_list.append(item);
C++ (Qt)typedef struct Buffer{char *data;int size;int flag;}
C++ (Qt)QMutex mutex; void MyThread::run(){while(1){mutex.lock();if(!my_list.isEmpty()){my_list.removeFirst();.....}//ifmutex.unlock();}//while}//run