diff options
| author | Steven Moreland <smoreland@google.com> | 2020-10-01 23:49:45 +0000 |
|---|---|---|
| committer | Steven Moreland <smoreland@google.com> | 2020-10-01 23:49:45 +0000 |
| commit | 87db54cf6a66dacd67d9e900c3fe37c1ff8522d4 (patch) | |
| tree | fdc768807104cfa8e08b6ca09ac7de2d0c49a687 /IPCThreadState.cpp | |
| parent | ea75dfb0735429f0b85ee8210ecff8d729a5197d (diff) | |
| download | platform_system_libhwbinder-master.tar.gz platform_system_libhwbinder-master.tar.bz2 platform_system_libhwbinder-master.zip | |
There are performance problems associated with it, and it is completely
unused here, so removing.
Bug: 168806193
Test: N/A
Change-Id: Iea8fef19fd7f7a6ff0fff413c9ff1b06b4349f29
Diffstat (limited to 'IPCThreadState.cpp')
| -rw-r--r-- | IPCThreadState.cpp | 13 |
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); } |
