OSDN Git Service

DispSync: Actually wait forever
authorDan Stoza <stoza@google.com>
Tue, 19 Apr 2016 17:03:46 +0000 (10:03 -0700)
committerDan Stoza <stoza@google.com>
Tue, 19 Apr 2016 17:03:46 +0000 (10:03 -0700)
commit8f8374d75ab17be5d168fea14d3f8e2a40ca3c66
tree056a1bd07580255d0cbd0f949e98ea3eb6f3d230
parent6328134d8f3969e5cf345bec84b2c6455afc6a34
DispSync: Actually wait forever

When computeNextEventTimeLocked returns INT64_MAX (because there are
currently no listeners), wait until the condition variable is
signaled instead of waiting for a long timeout. Since the condition
variable timeout is specified using CLOCK_REALTIME behind the scenes,
we can receive false wakeups in the presence of large system clock
changes.

Bug: 28152577
Change-Id: I88dbab5d5d0776cb25dea76a4574db055b308fd1
services/surfaceflinger/DispSync.cpp