Oleksiy Vyalov | d5f8b6a | 2015-01-13 23:19:40 +0000 | [diff] [blame] | 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 | |
Oleksiy Vyalov | d5f8b6a | 2015-01-13 23:19:40 +0000 | [diff] [blame] | 14 | PipeBase::~PipeBase() = default; |
| 15 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 16 | Error PipeBase::OpenAsWriter(llvm::StringRef name, bool child_process_inherit) { |
| 17 | return OpenAsWriterWithTimeout(name, child_process_inherit, |
| 18 | std::chrono::microseconds::zero()); |
Oleksiy Vyalov | d5f8b6a | 2015-01-13 23:19:40 +0000 | [diff] [blame] | 19 | } |
| 20 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 21 | Error PipeBase::Read(void *buf, size_t size, size_t &bytes_read) { |
| 22 | return ReadWithTimeout(buf, size, std::chrono::microseconds::zero(), |
| 23 | bytes_read); |
Oleksiy Vyalov | d5f8b6a | 2015-01-13 23:19:40 +0000 | [diff] [blame] | 24 | } |