<p>Patch set 2:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ddd;">-Code-Review</span></p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/20732">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/20732/2/src/select.c">File src/select.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/20732/2/src/select.c@291">Patch Set #2, Line 291:</a> <code style="font-family:monospace,monospace">OSMO_ASSERT</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I am also worried about this line. Do we really want to assert() on each iteration?<br>Shouldn't the API responsible for registering new fds ensure that?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/20732/2/src/select.c@305">Patch Set #2, Line 305:</a> <code style="font-family:monospace,monospace">                     p->events |= POLLOUT;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">|= POLLERR ?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">From `man poll`:</p><p style="white-space: pre-wrap; word-wrap: break-word;">POLLERR   An error has occurred on the device or stream. This flag is only valid in the revents bitmask; it shall be ignored in the events member.</p><p style="white-space: pre-wrap; word-wrap: break-word;">so I think the current approach is correct.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/20732/2/src/select.c@363">Patch Set #2, Line 363:</a> <code style="font-family:monospace,monospace">   rc = poll(g_poll.poll, n_poll, polling ? 0 : osmo_timers_nearest_ms());</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Please let's keep both implementations around and decide at compile time which to use. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I agree with Pau here. Also, having the ability to choose the right implementation at compile time would be nice. Especially for embedded targets like osmosom-bb, where it's a good question how well would poll() perform compared to the old good select() in terms of performance.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/20732">change 20732</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/20732"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I9e80da68a144b36926066610d0d3df06abe09bca </div>
<div style="display:none"> Gerrit-Change-Number: 20732 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 19 Oct 2020 10:04:27 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Comment-In-Reply-To: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>