I agree with Alex, but for further clarification, if you need to "pause" the stream, it will probably be better to look at some kind of locking mechanism, such as semaphores, mutexes, or one of many others available.
But without knowing your code, Windows is a proactive multi-tasking environment. Usually this is not necessary, just let your threads execute and the main OS and scheduler will keep track of all your tasks.
Jim
source share