Skip to content
Commit 990c77c1 authored by Matt Pape's avatar Matt Pape
Browse files

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
parent c8c13295
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment