Sleep 1 millisecond in poll() to avoid busy wait