Re: what does poll(0, 0, 100) do?



"wenmang@xxxxxxxxx" <wenmang@xxxxxxxxx> writes:

I am wondering what poll(0, 0, 100) does in the code? Does poll suppose
to return immediately?

It sleeps for at least 100ms, unless interrupted.
(It waits for an event but there won't be any)

Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
.