summaryrefslogtreecommitdiff
path: root/libs/gui/DisplayEventDispatcher.cpp
diff options
context:
space:
mode:
author Dominik Laskowski <domlaskowski@google.com> 2020-04-23 14:02:12 -0700
committer Dominik Laskowski <domlaskowski@google.com> 2020-04-27 11:12:28 -0700
commitdd4ef27360d1ffdc153c45251bbe6530e5af4ead (patch)
tree411585c58f2a26fada16e84d44ae499d448d4119 /libs/gui/DisplayEventDispatcher.cpp
parent0f1eb7d4517a207d06ce64e4ad8cacda219ca11b (diff)
SF: Modernize task scheduling API
Replace postMessageAsync and postMessageSync with schedule(<lambda>) returning std::future<T>, where T is the return type of the lambda, for an ergonomic and less error-prone API. Rewrite the hand-rolled synchronization logic in captureScreenCommon. Bug: 123715322 Bug: 134772048 Test: go/wm-smoke Test: screencap Test: libsurfaceflinger_unittest Change-Id: I02dc4114b61fb175463941ab5890e3127dd57a11
Diffstat (limited to 'libs/gui/DisplayEventDispatcher.cpp')
0 files changed, 0 insertions, 0 deletions