diff options
author | Pavel Labath <labath@google.com> | 2015-07-21 09:23:34 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2015-07-21 09:23:34 +0000 |
commit | 9f0701f8cafd50bbe9b36795c4331f3d82ce109a (patch) | |
tree | 017bcb9a0539c0118a026502c3da864e3de4407d /clang/lib/Driver/MinGWToolChain.cpp | |
parent | d818e38ff979c21577abada60057c83946852aeb (diff) | |
download | bcm5719-llvm-9f0701f8cafd50bbe9b36795c4331f3d82ce109a.tar.gz bcm5719-llvm-9f0701f8cafd50bbe9b36795c4331f3d82ce109a.zip |
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
Diffstat (limited to 'clang/lib/Driver/MinGWToolChain.cpp')
0 files changed, 0 insertions, 0 deletions