3 ms·
It's particularly surprising to me because the whole point of select() is to handle these sorts of cases easily. The technique I've often seen is just to have a
by syntheticnature 5y ago
It's particularly surprising to me because the whole point of select() is to handle these sorts of cases easily. The technique I've often seen is just to have a pipe or other local connection to the thread using select, and then you wake up select when you need it to add something to the queue.
- aftbit 5y agoThat was their fix.
- syntheticnature 5y agoMy over-editing of my comment got rid of the sense of "they knew it was the fix, why not do that in the first place?" Which, admittedly, sometimes folks just don't know, but usually I more often run into complete cluelesness that select()/poll() and friends exist.