summaryrefslogtreecommitdiffstats
path: root/IPCThreadState.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'IPCThreadState.cpp')
-rw-r--r--IPCThreadState.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/IPCThreadState.cpp b/IPCThreadState.cpp
index 3acf2f5..fbb1705 100644
--- a/IPCThreadState.cpp
+++ b/IPCThreadState.cpp
@@ -421,18 +421,6 @@ void IPCThreadState::flushCommands()
}
}
-void IPCThreadState::blockUntilThreadAvailable()
-{
- pthread_mutex_lock(&mProcess->mThreadCountLock);
- while (mProcess->mExecutingThreadsCount >= mProcess->mMaxThreads) {
- ALOGW("Waiting for thread to be free. mExecutingThreadsCount=%lu mMaxThreads=%lu\n",
- static_cast<unsigned long>(mProcess->mExecutingThreadsCount),
- static_cast<unsigned long>(mProcess->mMaxThreads));
- pthread_cond_wait(&mProcess->mThreadCountDecrement, &mProcess->mThreadCountLock);
- }
- pthread_mutex_unlock(&mProcess->mThreadCountLock);
-}
-
status_t IPCThreadState::getAndExecuteCommand()
{
status_t result;
@@ -472,7 +460,6 @@ status_t IPCThreadState::getAndExecuteCommand()
}
mProcess->mStarvationStartTimeMs = 0;
}
- pthread_cond_broadcast(&mProcess->mThreadCountDecrement);
pthread_mutex_unlock(&mProcess->mThreadCountLock);
}