diff options
author | Glenn Kasten <gkasten@google.com> | 2013-06-25 14:33:05 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-06-25 14:33:06 +0000 |
commit | 269e91be6fc7434cbc60b69df4bf348238ea15fc (patch) | |
tree | f9c5b984b45033c184bd9f7985b200046d9da0dc /include | |
parent | d44ffc822be382791327c45aec2e812fe66981ce (diff) | |
parent | 0d09a9bec07b3bec78bd473ff0bfcf0a261f3f25 (diff) | |
download | frameworks_av-269e91be6fc7434cbc60b69df4bf348238ea15fc.zip frameworks_av-269e91be6fc7434cbc60b69df4bf348238ea15fc.tar.gz frameworks_av-269e91be6fc7434cbc60b69df4bf348238ea15fc.tar.bz2 |
Merge "Use mFutex as an event flag rather than semaphore"
Diffstat (limited to 'include')
-rw-r--r-- | include/private/media/AudioTrackShared.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/private/media/AudioTrackShared.h b/include/private/media/AudioTrackShared.h index 681f557..ef5bb8d 100644 --- a/include/private/media/AudioTrackShared.h +++ b/include/private/media/AudioTrackShared.h @@ -94,8 +94,9 @@ struct audio_track_cblk_t // parameter // renamed to "_" to detect incorrect use - volatile int32_t mFutex; // semaphore: down (P) by client, + volatile int32_t mFutex; // event flag: down (P) by client, // up (V) by server or binderDied() or interrupt() +#define CBLK_FUTEX_WAKE 1 // if event flag bit is set, then a deferred wake is pending private: |