commit | 990c77c1f8796ad0aca0ea12bdaa6a8885863aa9 | [log] [tgz] |
---|---|---|
author | Matt Pape <mpape@google.com> | Tue Oct 16 10:37:06 2018 -0700 |
committer | Matt Pape <mpape@google.com> | Tue Oct 16 10:41:53 2018 -0700 |
tree | 78626381bebae1ce3cad2f4a1223af86a6c65d6e | |
parent | c8c132959a55f3af128bb6320e3dfdc0503b4553 [diff] |
Stop waiting when elapsed time is equal to or greater than the timeout, rather than strictly greater than. This avoids a rare problem where the loop manages to complete at exactly the timeout time and then makes a call to wait(0), which waits indefinitely until another thread notifies it instead of timing out after 0 ms. Test: local unit testing Bug: 113100523 Change-Id: If23dc50e2bf58d0d928d47807ec792c92ff47ee1