【发布时间】:2013-03-13 19:54:15
【问题描述】:
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(),使用相同的参数?
【问题讨论】:
-
这是一种 linux 主义:Linux 总是具有更新结构时间戳的非标准特性。其他 unice 没有这样做,它不在 POSIX、IIRC 中。
标签: c multithreading posix