摘要: 下面是一个关于linux信号量和计时器的例子。 1 #include <signal.h> 2 #include <sys/time.h> 3 #include <sys/errno.h> 4 #include <cstring> 5 #include <iostream> 6 using namespace std; 7 8 void handle_sig(int dunno) 9 { 10 cout << "get a signal: "; 11 unsigned uRet = 0; 12 swit 阅读全文
posted @ 2012-09-17 23:07 夜塔 阅读(359) 评论(0) 推荐(0) 编辑