select()-able timers

后端 未结 4 1127
长发绾君心
长发绾君心 2021-02-14 03:20

select() is a great system call. You can pack any number of file descriptors, socket descriptors, pipes, etc. and get notified in a synchronous fashion when input becomes availa

4条回答
  •  轮回少年
    2021-02-14 04:03

    timerfd_create does exactly this. It's a fairly recent addition to the linux kernel and might not be available on all distros yet though.

提交回复
热议问题