llvm-project/lldb/source/Host
Pavel Labath 9f0701f8ca Add Pipe::WriteWithTimeout method
Summary:
This commit adds a WriteWithTimeout method to time Pipe class, analogous to the existing
ReadWithTimeout(). It also changes the meaning of passing zero as a timeout value. Previously,
zero was used as an infinite timeout value. Now, the meaning of zero timeout to return the data
avaiable without sleeping (basically, a non-blocking operation). This makes the behaviour of Pipe
consistent with the Communication/Connection classes. For blocking operatios with infinite
timeout, I introduce a special constant for this purpose.

Reviewers: ovyalov, zturner

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D11358

llvm-svn: 242764
2015-07-21 09:23:34 +00:00
..
android [linux] Use cmake to detect support process_vm_readv (bug #23918) 2015-06-29 09:18:17 +00:00
common Add Pipe::WriteWithTimeout method 2015-07-21 09:23:34 +00:00
freebsd [Makefiles] Align library names with CMake build 2015-07-14 20:25:19 +00:00
linux [Makefiles] Align library names with CMake build 2015-07-14 20:25:19 +00:00
macosx Correctly get the arguments and environment, even for processes that have a large amount or arguments and/or environment variables. 2015-07-20 22:52:13 +00:00
posix Add Pipe::WriteWithTimeout method 2015-07-21 09:23:34 +00:00
windows Add Pipe::WriteWithTimeout method 2015-07-21 09:23:34 +00:00
CMakeLists.txt Introduce a MainLoop class and switch llgs to use it 2015-07-13 10:44:55 +00:00
Makefile [Makefiles] Re-add OSX specific code that got lost in lldbHost consolidation 2015-07-17 21:47:35 +00:00