* [PATCH] doc/queues.txt: add key point about only retrieving ONE event
@ 2017-10-24 18:56 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2017-10-24 18:56 UTC (permalink / raw)
This had become such second nature to me that I forgot to
document it :x
doc/queues.txt | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/doc/queues.txt b/doc/queues.txt
index d1de9da..fe8c3bb 100644
@@ -50,8 +50,9 @@ This is either an epoll(2) or kqueue(2) descriptor. Unlike traditional
poll(2)/select(2), epoll/kqueue easily allows clients to migrate between
threads as client sockets become ready.
-To implement queue-like behavior, we rely exclusively on one-shot
-notifications (EPOLLONESHOT or EV_ONESHOT).
+To implement this behavior, we rely exclusively on one-shot notifications
+(EPOLLONESHOT or EV_ONESHOT) and only retrieve one event at-a-time with
+epoll_wait or kqueue to avoid head-of-line blocking.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-10-24 18:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-24 18:56 [PATCH] doc/queues.txt: add key point about only retrieving ONE event Eric Wong
Code repositories for project(s) associated with this public inbox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).