1 //===-- source/Host/common/PipeBase.cpp -------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #include "lldb/Host/PipeBase.h"
11
12 using namespace lldb_private;
13
14
15 PipeBase::~PipeBase() = default;
16
17 Error
OpenAsWriter(llvm::StringRef name,bool child_process_inherit)18 PipeBase::OpenAsWriter(llvm::StringRef name, bool child_process_inherit)
19 {
20 return OpenAsWriterWithTimeout(name, child_process_inherit, std::chrono::microseconds::zero());
21 }
22
23 Error
Read(void * buf,size_t size,size_t & bytes_read)24 PipeBase::Read(void *buf, size_t size, size_t &bytes_read)
25 {
26 return ReadWithTimeout(buf, size, std::chrono::microseconds::zero(), bytes_read);
27 }
28