最后,使用此前创建的ktime值启动计时器。
Finally, you start the timer using your previously created ktime value.
所有线程已启动后,将等待30秒再启动计时器。
After all of the threads are started, plus a 30 second wait, the timer is started.
更好的方法是启动计时器,并且使计时器不时地提醒事件线程去查看中间区域,以寻找更新。
A better approach is to start a timer, and have timer poke the event thread every so often to go look at the staging area for updates.
应用推荐