Web Analytics Made Easy - Statcounter
Skip to content

Running Multiple Windows By Polling

This technique for handling mutiple windows is no longer recommended for most situations. The newer architecture for multiple windows is the "Read All Windows" call read_all_windows()

The technique used in this design pattern could be summarized as being round-robin polling. Each window is polled to see if any event has happened. The timeout parameter on the read call is how the polling is achieved. Polling is an inefficient way of handling multiple windows which is why read_all_windows is recommended.