OSDN Git Service

audioflinger: remove async write race conditions
authorEric Laurent <elaurent@google.com>
Fri, 6 Sep 2013 01:09:19 +0000 (18:09 -0700)
committerEric Laurent <elaurent@google.com>
Fri, 6 Sep 2013 18:09:03 +0000 (18:09 +0000)
commit3b4529e03c5fc7a44c22f9091ad15a269bfca3a8
tree552d810348dc2ffd6018e58970a4cbbb39eceb5e
parent60c60df7db278d2fa5c90b0fa14f99a61d50272b
audioflinger: remove async write race conditions

Remove possible race conditions between async callback
thread and offload thread when clearing and setting the
draining and write blocked flags.

Bug: 8174034.
Change-Id: I7af10491f39dc0e7d7414862a9d8e763daa2e2b7
services/audioflinger/Threads.cpp
services/audioflinger/Threads.h