cpp/src/arrow/io/file_benchmark.cc
// Set up a pipe with an OutputStream at one end and a BackgroundReader at
// the other end.
Set up a pipe with an OutputStream at one end and a BackgroundReader at
the other end.
Set up a pipe with an OutputStream at one end and a BackgroundReader at the other end .
static void SetupPipeWriter(std::shared_ptr<io::OutputStream>* stream,
                            std::shared_ptr<BackgroundReader>* reader) {
  auto pipe = *internal::CreatePipe();
  *stream = *io::FileOutputStream::Open(pipe.wfd);
  *reader = BackgroundReader::StartReader(pipe.rfd);
}
static void SetupPipeWriter ( std :: shared_ptr < io :: OutputStream > * stream , std :: shared_ptr < BackgroundReader > * reader ) { auto pipe = * internal :: CreatePipe ( ) ; * stream = * io :: FileOutputStream :: Open ( pipe . wfd ) ; * reader = BackgroundReader :: StartReader ( pipe . rfd ) ; }
Set up a pipe with an OutputStream at one end and a BackgroundReader at
the other end.
Set up a pipe with an OutputStream at one end and a BackgroundReader at the other end .