Instead of polling, notify the consumer thread that there's something to consume.
Example Win32 code: http://www.codeguru.com/forum/showpo...5&postcount=15

gg