diff options
| author | Pavel Labath <labath@google.com> | 2018-05-03 15:33:41 +0000 |
|---|---|---|
| committer | Pavel Labath <labath@google.com> | 2018-05-03 15:33:41 +0000 |
| commit | 38d67db39cce632d02bfdc3413289cb6868faa71 (patch) | |
| tree | b6ff8b90e58e88a5d17b36754c0be7a9aa7b4e6a /lldb/source/Target/Process.cpp | |
| parent | dc8abc45d236a3cbfb493cdf2b69a5c2fe8c33c5 (diff) | |
| download | bcm5719-llvm-38d67db39cce632d02bfdc3413289cb6868faa71.tar.gz bcm5719-llvm-38d67db39cce632d02bfdc3413289cb6868faa71.zip | |
Remove the timed_out out-argument from Predicate::WaitForValueEqualTo
The function can only return in one of two ways: the Predicate value is
successfully set within the allotted time, or it isn't (the wait times
out). These states can be represented in the return value, and the extra
arg adds no value.
llvm-svn: 331458
Diffstat (limited to 'lldb/source/Target/Process.cpp')
| -rw-r--r-- | lldb/source/Target/Process.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 1f223dfc444..bbad51a4f1e 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -3797,11 +3797,10 @@ void Process::ControlPrivateStateThread(uint32_t signal) { bool receipt_received = false; if (PrivateStateThreadIsValid()) { while (!receipt_received) { - bool timed_out = false; // Check for a receipt for 2 seconds and then check if the private // state thread is still around. - receipt_received = event_receipt_sp->WaitForEventReceived( - std::chrono::seconds(2), &timed_out); + receipt_received = + event_receipt_sp->WaitForEventReceived(std::chrono::seconds(2)); if (!receipt_received) { // Check if the private state thread is still around. If it isn't // then we are done waiting |

