简体   繁体   English

与Windows的CreateThreadpoolTimer等效的最新Linux

[英]Closest Linux equivalent to Windows' CreateThreadpoolTimer

在Linux上最接近Windows的CreateThreadpoolTimer等效项是什么?

I know nothing about Windows, but with timer_create you can have several timers. 我对Windows一无所知,但是使用timer_create可以拥有多个计时器。 And many libraries also give you timers, eg QTimer in Qt (which can also give your thread pools). 许多库还为您提供计时器,例如Qt中的QTimer (它也可以提供您的线程池)。

Perhaps setitimer() ? 也许setitimer() You only get one set of interval timers per process, though. 但是,每个进程只能获得一组间隔计时器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM