摘要:
(POSIX定时器) POSIX提供了一套定时器API,通过产生一个sigevent事件,来通知进程事件产生。 创建定时器 #include <signal.h> #include <time.h> int timer_create(clockid_t clockid, struct sigeven 阅读全文
posted @ 2020-11-29 21:34
Sigmun
阅读(967)
评论(0)
推荐(0)
摘要:
#include <signal.h> union sigval { int sival_int; void *sival_ptr; }; struct sigevent { int sigev_notify; // 通知类型 int sigev_signo; // 通知信号 union sigva 阅读全文
posted @ 2020-11-29 21:01
Sigmun
阅读(222)
评论(0)
推荐(0)

浙公网安备 33010602011771号