阅读背景:

Linux timerfd,在不阻塞代码执行的情况下,每隔x秒调用一个函数。

来源:互联网 

Need to call a function every X(say 5) seconds and the below code does it . But its blocking the execution of code. As i want it to work like setitimer , where i can say call a function every 5 sec and do something else. ThanksNeed to call a function every X(say 5) seconds




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: