summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2018-07-30 18:51:55 -0700
committerJosh Gao <jmgao@google.com>2018-07-31 15:56:31 -0700
commit95af641bd65f6f02318ebc66bf5faaeb370108c8 (patch)
treea376f5c4463bc5e4bc5da1ceedf47b2064e0811a /libutils/Unicode.cpp
parent190624301755d366ccc464b2223eeeec5c7ccd32 (diff)
adb: don't pass time_point::max to condition_variable::wait_until.
libstdc++ implements wait_until by calculating the offset between its default clock and the clock that it's given by calling now() on each and subtracting, and then adds that offset to the time_point argument. When time_point::max is used, this overflows, resulting in the reconnection thread spinning. Test: wine adb.exe server nodaemon Change-Id: Ife58f0aad14bc44c0804483d3ff2351c28b3d576
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions