Wait for new features instead of using a busy loop
Some cleanups and comments
Notify consumer thread before exiting the producer
Merge pull request #15 from jtvoorde/threadedfeatureinputstream_wait

Improvement for busy loop in ThreadFeatureInputStream.hasNext()