Added a non-blocking poll() function to Thread.