if (pthread_create(&qmediaplayer_thread, NULL, (void*)&player1_task, NULL)!=0){
return -1;
}
fprintf(stderr,"Player1 thread starts \n");
ind = pthread_create(&qmp_read_thread, NULL,(void *)&player2_task , NULL);
fprintf(stderr,"Player2 thread starts %d\n",ind);
the second pthread_create functions hangs, i.e. second fprintf is not executed...
|