Hi,
BHEEMSEN KULKARNI wrote:
> Hi,
>
> There is piece code in the hciattach "poll(&p, 1, 500)", which is poll for
> every 500 msec.
>
> main()
> {
> while (!__io_canceled) {
> p.revents = 0;
> err = poll(&p, 1, 500);
In my code the poll is every 5000 seconds, but maybe is a different version
> if (err < 0 && errno == EINTR)
> continue;
> if (err)
> break;
> }
> what is this piece of this does exactly,because of polling off every 500
> msec causes the System not going to Sleep state.
Why the poll on a file descriptor cause the no sleep state?
>
> Can I increase timer value?
>
> Regards
> Bheemsen K
>
> >
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---