Is it possible to make a stream wait on any of the windows synchronization objects , like events or mutexes?