Path: blob/main/contrib/llvm-project/lldb/source/Host/common/PipeBase.cpp
39606 views
//===-- source/Host/common/PipeBase.cpp -----------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "lldb/Host/PipeBase.h"910using namespace lldb_private;1112PipeBase::~PipeBase() = default;1314Status PipeBase::OpenAsWriter(llvm::StringRef name,15bool child_process_inherit) {16return OpenAsWriterWithTimeout(name, child_process_inherit,17std::chrono::microseconds::zero());18}1920Status PipeBase::Read(void *buf, size_t size, size_t &bytes_read) {21return ReadWithTimeout(buf, size, std::chrono::microseconds::zero(),22bytes_read);23}242526