1*5ffd83dbSDimitry Andric //===-- source/Host/common/PipeBase.cpp -----------------------------------===//
20b57cec5SDimitry Andric //
30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric //
70b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric
90b57cec5SDimitry Andric #include "lldb/Host/PipeBase.h"
100b57cec5SDimitry Andric
110b57cec5SDimitry Andric using namespace lldb_private;
120b57cec5SDimitry Andric
130b57cec5SDimitry Andric PipeBase::~PipeBase() = default;
140b57cec5SDimitry Andric
OpenAsWriter(llvm::StringRef name,bool child_process_inherit)150b57cec5SDimitry Andric Status PipeBase::OpenAsWriter(llvm::StringRef name,
160b57cec5SDimitry Andric bool child_process_inherit) {
170b57cec5SDimitry Andric return OpenAsWriterWithTimeout(name, child_process_inherit,
180b57cec5SDimitry Andric std::chrono::microseconds::zero());
190b57cec5SDimitry Andric }
200b57cec5SDimitry Andric
Read(void * buf,size_t size,size_t & bytes_read)210b57cec5SDimitry Andric Status PipeBase::Read(void *buf, size_t size, size_t &bytes_read) {
220b57cec5SDimitry Andric return ReadWithTimeout(buf, size, std::chrono::microseconds::zero(),
230b57cec5SDimitry Andric bytes_read);
240b57cec5SDimitry Andric }
25