我传递队列这样的源文件AC和BC之间传递队列作为参数在C
文件:AC
sq[a]=new_queue();
pthread_create(&st[a],NULL,sendPacket,sq[a]);
文件:BC
void *sendPacket(void *queue){
/* here i need to know which queue has come ,determine
the index of queue how can I do it? */
}
请更新您的称号;问题不在于“将队列作为参数传递”。 –