Fixed build error with clang/llvm.
Change-Id: Ideacdc974ebad542df724464ccba9fcfb2b7ea91
This commit is contained in:
parent
b85401d4ba
commit
a3206e690b
@ -403,8 +403,9 @@ void IPCThreadState::blockUntilThreadAvailable()
|
||||
{
|
||||
pthread_mutex_lock(&mProcess->mThreadCountLock);
|
||||
while (mProcess->mExecutingThreadsCount >= mProcess->mMaxThreads) {
|
||||
ALOGW("Waiting for thread to be free. mExecutingThreadsCount=%i mMaxThreads=%i\n",
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user