summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-07-13 21:59:37 -0700
committerMathias Agopian <mathias@google.com>2009-07-13 22:06:36 -0700
commitb07c28b90b2d2793be2b8878d813b607f3eebbb7 (patch)
tree9b057ba339d33e8e13d0f0b7dabc2eca22603340 /media
parent43d2c03d8ff8c623391a17b10e01a601d55d5b1e (diff)
downloadframeworks_av-b07c28b90b2d2793be2b8878d813b607f3eebbb7.zip
frameworks_av-b07c28b90b2d2793be2b8878d813b607f3eebbb7.tar.gz
frameworks_av-b07c28b90b2d2793be2b8878d813b607f3eebbb7.tar.bz2
add a ctor to Mutex to specify the type, which can be shared. This is used by sf and af an soon will allow some optimization in the kernel for non shared mutexes
Diffstat (limited to 'media')
-rw-r--r--media/libmedia/AudioTrack.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmedia/AudioTrack.cpp b/media/libmedia/AudioTrack.cpp
index af7dae5..7b9eda7 100644
--- a/media/libmedia/AudioTrack.cpp
+++ b/media/libmedia/AudioTrack.cpp
@@ -891,7 +891,7 @@ void AudioTrack::AudioTrackThread::onFirstRef()
// =========================================================================
audio_track_cblk_t::audio_track_cblk_t()
- : user(0), server(0), userBase(0), serverBase(0), buffers(0), frameCount(0),
+ : lock(Mutex::SHARED), user(0), server(0), userBase(0), serverBase(0), buffers(0), frameCount(0),
loopStart(UINT_MAX), loopEnd(UINT_MAX), loopCount(0), volumeLR(0), flowControlFlag(1), forceReady(0)
{
}