in reply to Re^2: Signals vs. Windowsin thread Signals vs. Windows
What if he combines polling the event with non blocking IO ?
That is certainly an option, but once you move to non-blocking IO and polling, a simple shared variable transitioning from false to true is far simpler than a kernel-based event mechanism.
The problem with non-blocking IO is that you then have manually replicate all the functionality of readline, eof etc. in user code which is a retrograde step. Especially when there are simpler ways.
RIP Neil Armstrong
DejaVu Sans Mono
Droid Sans Mono
Envy Code R
Source Code Pro
The default, whatever it is
Results (91 votes). Check out past polls.