gpt4 book ai didi

C - select() - 如何正确更新计时器

转载 作者:行者123 更新时间:2023-11-30 18:42:42 25 4
gpt4 key购买 nike

Linux 手册指出:

The operation of select() and pselect() is identical, other than these
three differences:

(i) ...

(ii) select() may update the timeout argument to indicate how much time
was left. pselect() does not change this argument.
(iii) ...

它说你可以更新它,但我该怎么做呢?我再次使用相同的参数调用 select() ?

最佳答案

It says that you can update it but how can i do that

它说没有这样的事情。它说该函数可以修改它The standard短语略有不同:

Upon successful completion, the select() function may modify the object pointed to by the timeout argument.

关于C - select() - 如何正确更新计时器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15395164/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com