java - PipedOutputStream/PipedInputStream analog in c++ -


in java, there pipedoutputstream/pipedinputstream pair, circular buffer constant size. 1 thread can write pipedoutputstream, , blocked, if buffer full. in similar way, thread read pipedinputstream, , blocked, if buffer empty. helpful - example, if want read big file disk, , send internet.

so, question - there analog in c++ (stl or boost)?


Comments