OSDN Git Service

Use mFutex as an event flag rather than semaphore
authorGlenn Kasten <gkasten@google.com>
Mon, 24 Jun 2013 19:06:46 +0000 (12:06 -0700)
committerGlenn Kasten <gkasten@google.com>
Mon, 24 Jun 2013 20:34:08 +0000 (13:34 -0700)
commit0d09a9bec07b3bec78bd473ff0bfcf0a261f3f25
tree410d8c22e5d15f9143d04212cd96939c217cacc5
parenta2cf13c77260f98fc674f103dcbd2bb2488a80ce
Use mFutex as an event flag rather than semaphore

An event flag can be more fault-tolerant in case of loss of synchronization,
as it cannot overflow.  It also allows more bits to be used in the future.
See http://en.wikipedia.org/wiki/Event_flag

Change-Id: I01ca25d951eb263124da54bb4738f0d94ec4a48b
include/private/media/AudioTrackShared.h
media/libmedia/AudioTrackShared.cpp