标签: windows linux porting
Linux上与Windows CreateThreadpoolTimer最接近的等价物是什么?
CreateThreadpoolTimer
答案 0 :(得分:1)
我对Windows一无所知,但使用timer_create,您可以拥有多个计时器。许多图书馆也为您提供计时器,例如Qt中的QTimer(也可以给你的线程池)。
timer_create
答案 1 :(得分:0)
也许setitimer()?但是,每个进程只能获得一组间隔计时器。
setitimer()