llvm-project/lldb/source/Host/posix
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
..
ConnectionFileDescriptorPosix.cpp Did some cleanup to stop us from leaking Pipe file descriptors. 2015-05-23 03:54:53 +00:00
FileSystem.cpp Avoid a recursive function call that could run LLDB out of file descriptors in FileSystem::DeleteDirectory(...). 2015-06-29 18:29:00 +00:00
HostInfoPosix.cpp Re-add #include "lldb-python.h" back in two places. 2015-05-29 18:18:26 +00:00
HostProcessPosix.cpp Refactor many file functions to use FileSpec over strings. 2015-05-29 19:52:29 +00:00
HostThreadPosix.cpp Fix being able to get a thread result when calling HostThreadPosix::Join(). It was broken when initially checked in by getting the thread result into a temporary variable and never doing anything with it. Most threads in LLDB don't look at their thread results, but launching processes in a terminal window on MacOSX does require getting a thread result and this broke "process launch --tty" on darwin. 2015-01-06 00:21:29 +00:00
LockFilePosix.cpp Use file locks to synchronize access to ModuleCache. 2015-05-07 15:28:49 +00:00
MainLoopPosix.cpp [MainLoop] Fix assertion failure 2015-07-17 10:08:38 +00:00
PipePosix.cpp Add Pipe::WriteWithTimeout method 2015-07-21 09:23:34 +00:00
ProcessLauncherPosix.cpp Create a process launcher abstraction. 2014-10-14 21:55:08 +00:00