struct sigevent:
This element specifies how the calling process is notified once the operation terminates. If the `sigev_notify' element is `SIGEV_NONE', no notification is sent. If it is
`SIGEV_SIGNAL', the signal determined by `sigev_signo' is sent. Otherwise, `sigev_notify' must be `SIGEV_THREAD'. In this case, a thread is created which starts executing the function pointed to by `sigev_notify_function'.
博客介绍了struct sigevent元素,它用于指定操作终止时调用进程的通知方式。若sigev_notify为SIGEV_NONE则不通知;为SIGEV_SIGNAL则发送sigev_signo确定的信号;为SIGEV_THREAD则创建线程执行sigev_notify_function指向的函数。
5880

被折叠的 条评论
为什么被折叠?



