[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_fi
From: |
Richard Wilbur |
Subject: |
Re: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-1963-g63de409 |
Date: |
Wed, 30 Apr 2014 21:56:41 -0600 |
On Wed, Apr 30, 2014 at 2:47 PM, Bastiaan Jacques <address@hidden> wrote:
[...]
> With regards to reverting: from what I understand that is no reason to
> prefer select() over poll(), but there is reason for the reverse: not
> doing horrible things to the stack. :)
In my experience, select() is to be preferred over poll() in that it
doesn't hog the processor in the same way. select() uses an
asynchronous I/O implementation which allows the process to yield
until the specified activity occurs on the file descriptor or the
timeout expires while poll() checks the file descriptor for the
specified activity over and over again until the timeout expires or
the activity occurs.
> Still, I don't want to wallpaper over a bug by doing that, so I'm
> thinking of adding an assert(fd < FD_SETSIZE), or something along those
> lines, to aid in debugging the issue.
This seems like a good thing.