LLDB  mainline
PipeBase.cpp
Go to the documentation of this file.
1 //===-- source/Host/common/PipeBase.cpp -----------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include "lldb/Host/PipeBase.h"
10 
11 using namespace lldb_private;
12 
13 PipeBase::~PipeBase() = default;
14 
15 Status PipeBase::OpenAsWriter(llvm::StringRef name,
16  bool child_process_inherit) {
17  return OpenAsWriterWithTimeout(name, child_process_inherit,
18  std::chrono::microseconds::zero());
19 }
20 
21 Status PipeBase::Read(void *buf, size_t size, size_t &bytes_read) {
22  return ReadWithTimeout(buf, size, std::chrono::microseconds::zero(),
23  bytes_read);
24 }
lldb_private::PipeBase::OpenAsWriterWithTimeout
virtual Status OpenAsWriterWithTimeout(llvm::StringRef name, bool child_process_inherit, const std::chrono::microseconds &timeout)=0
lldb_private::PipeBase::OpenAsWriter
Status OpenAsWriter(llvm::StringRef name, bool child_process_inherit)
Definition: PipeBase.cpp:15
lldb_private::PipeBase::~PipeBase
virtual ~PipeBase()
PipeBase.h
lldb_private::PipeBase::Read
Status Read(void *buf, size_t size, size_t &bytes_read)
Definition: PipeBase.cpp:21
lldb_private::Status
Definition: Status.h:44
lldb_private::PipeBase::ReadWithTimeout
virtual Status ReadWithTimeout(void *buf, size_t size, const std::chrono::microseconds &timeout, size_t &bytes_read)=0
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16