pthread
luguangxu68
这个作者很懒,什么都没留下…
展开
-
pthread 随想
thread_fun() { init(); while(true) { if(getMsg(&msg)) // noblock, 非阻塞 { //dealMsg(&msg); switch(msg) { case START : someInitFun(); isWork =原创 2014-12-11 16:36:11 · 495 阅读 · 0 评论 -
该使用pthread_sleepon_signal() 还是 pthread_sleepon_broadcast()
In the sleepon section, we promised to talk about the difference between the pthread_sleepon_signal() and pthread_sleepon_broadcast() functions. In the same breath, we'll talk about the difference bet转载 2016-05-01 16:50:18 · 512 阅读 · 0 评论