OSDN Git Service

mtp: Send events async.
authorJerry Zhang <zhangjerry@google.com>
Wed, 26 Jul 2017 18:37:23 +0000 (11:37 -0700)
committerJerry Zhang <zhangjerry@google.com>
Mon, 7 Aug 2017 19:47:53 +0000 (19:47 +0000)
commitd80492b819b3934475596ec4afda979bad3bd126
tree161c8d73186a32e2ade72a22e26cf4a4c29840ef
parent5b2a1573873782ace86914720fd7e46f677e71cc
mtp: Send events async.

AFT will not read the events endpoint at all
causing every sendEvent() to block. Since
event ordering doesn't really matter, send
events in their own detached thread instead.

Bug: 36802721
Test: Connect AFT, create a folder from device, check not frozen
Change-Id: I4b8aee93c19fa9c73e6b2f34d9794a491b2433e1
media/mtp/MtpFfsHandle.cpp
media/mtp/MtpFfsHandle.h