OSDN Git Service

SoundTrigger: get service by value.
authorEric Laurent <elaurent@google.com>
Wed, 7 Sep 2016 23:58:39 +0000 (16:58 -0700)
committerEric Laurent <elaurent@google.com>
Fri, 9 Sep 2016 16:15:30 +0000 (09:15 -0700)
commit3b01b3019b1c62132792a1a94e2dc1f7cfc84f2e
tree788c73afa82ff5d0beaf8b5628870a342b28bb19
parentde97dbd662bc959bfe4a894c8678f1383294e148
SoundTrigger: get service by value.

Get strong pointer to service interface by value and not reference to
prevent race conditions where the service pointer can be cleared
by another thread while in use.

Bug: 30907212
Change-Id: I6f02ec3fd1e6392b842b334e1cc4f9aa23916009
include/soundtrigger/SoundTrigger.h
soundtrigger/SoundTrigger.cpp