标签:
在INIT_ARRAY中,起了一个线程,里面只有一个循环。结果UI线程挂死
pthread_t id_0;
pthread_create (&id_0, NULL, pipe_server, (void*)NULL);
pthread_join (id_0, NULL);
问题出在pthread_join上面
The pthread_join() function waits for the thread specified by thread to terminate.
http://stackoverflow.com/questions/29724323/android-ndk-multithreading-block-ui-responds?
Android main thread has itself message loop. pthread_join isn‘t necessary.
Android主线程有自己的消息循环,不需要pthread_join
标签:
原文地址:http://www.cnblogs.com/kiiim/p/5671371.html