分页: 1 / 1

多定时器信号丢失问题

帖子发表于 : 周日 6月 14, 2009 11:32 am
hlf0451
SA_SIGINFO tells the OS to queue this signal. The default is not to queue a signal delivered to a process. If a signal isn't queued, setting the same signal multiple times on a process or thread before it runs results in only the last signal's being delivered. If you set SA_SIGINFO, the signals are queued and they're all delivered.
多个定时器几乎同时到时(比如1个100ms,1个50ms), 部分定时器信号仍会丢失,设置SA_SIGINFO后信号排队了吗。

该问题如何解决呢,谢谢