summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Threads.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-05-21 17:55:51 -0700
committerElliott Hughes <enh@google.com>2014-05-21 18:15:33 -0700
commitee499291404a192b059f2e04c5afc65aa6cdd74c (patch)
tree1c1537b599b21c331b15493f776adcbff307ac2f /services/audioflinger/Threads.cpp
parentd084206d5a4a5364211af46e4201311933e83bfc (diff)
downloadframeworks_av-ee499291404a192b059f2e04c5afc65aa6cdd74c.zip
frameworks_av-ee499291404a192b059f2e04c5afc65aa6cdd74c.tar.gz
frameworks_av-ee499291404a192b059f2e04c5afc65aa6cdd74c.tar.bz2
Move frameworks/av off private API.
Bug: 11156955 Change-Id: Ib3bb9d66a2bf92977c2445b62aa074a2d7a45aea
Diffstat (limited to 'services/audioflinger/Threads.cpp')
-rw-r--r--services/audioflinger/Threads.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index 6ed72dc..433740c 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -2603,7 +2603,7 @@ AudioFlinger::MixerThread::~MixerThread()
if (state->mCommand == FastMixerState::COLD_IDLE) {
int32_t old = android_atomic_inc(&mFastMixerFutex);
if (old == -1) {
- __futex_syscall4(&mFastMixerFutex, FUTEX_WAKE_PRIVATE, 1, NULL);
+ (void) syscall(__NR_futex, &mFastMixerFutex, FUTEX_WAKE_PRIVATE, 1);
}
}
state->mCommand = FastMixerState::EXIT;
@@ -2660,7 +2660,7 @@ ssize_t AudioFlinger::MixerThread::threadLoop_write()
if (state->mCommand == FastMixerState::COLD_IDLE) {
int32_t old = android_atomic_inc(&mFastMixerFutex);
if (old == -1) {
- __futex_syscall4(&mFastMixerFutex, FUTEX_WAKE_PRIVATE, 1, NULL);
+ (void) syscall(__NR_futex, &mFastMixerFutex, FUTEX_WAKE_PRIVATE, 1);
}
#ifdef AUDIO_WATCHDOG
if (mAudioWatchdog != 0) {