Grx!
Código:
void *my_thread_function(void *arg){
cout << "Thread Function";
}
void crear(){
int rc;
pthread_t my_thread;
rc = pthread_create(&my_thread, NULL, my_thread_function, NULL);
if(rc!=0){
exit(-1);
}
pthread_exit(NULL);
}
int main(int argc, char *argv[]) {
cout << "Creando Threads";
crear();
cout << "Continua la aplicacion"; // esta es la línea que nunca se llega a mostrar
return 0;
}


