[Lldb-commits] [PATCH] D11358: Add Pipe::WriteWithTimeout method

Pavel Labath labath at google.com
Mon Jul 20 09:52:33 PDT 2015


labath created this revision.
labath added reviewers: ovyalov, zturner.
labath added a subscriber: lldb-commits.

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.

http://reviews.llvm.org/D11358

Files:
  include/lldb/Host/PipeBase.h
  include/lldb/Host/posix/PipePosix.h
  include/lldb/Host/windows/PipeWindows.h
  source/Host/common/PipeBase.cpp
  source/Host/posix/PipePosix.cpp
  source/Host/windows/PipeWindows.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11358.30165.patch
Type: text/x-patch
Size: 7746 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150720/bbd6d212/attachment.bin>


More information about the lldb-commits mailing list