Lines Matching refs:mCache
101 } mCache; member in aidl::android::hardware::media::bufferpool2::implementation::ClientManager::Impl
123 std::unique_lock<std::mutex> lock(mCache.mMutex); in registerSender()
124 for (auto it = mCache.mClients.begin(); it != mCache.mClients.end(); ++it) { in registerSender()
139 mCache.mClients.erase(it); in registerSender()
143 if (!mCache.mConnecting) { in registerSender()
144 mCache.mConnecting = true; in registerSender()
158 mCache.mClients.push_back(std::make_pair(accessor, wclient)); in registerSender()
169 mCache.mConnecting = false; in registerSender()
171 mCache.mConnectCv.notify_all(); in registerSender()
174 mCache.mConnectCv.wait_for(lock, kRegisterTimeoutMs*1ms); in registerSender()
236 std::lock_guard<std::mutex> lock(mCache.mMutex); in create()
238 mCache.mClients.push_back(std::make_pair(accessor, wclient)); in create()
252 std::unique_lock<std::mutex> lock1(mCache.mMutex); in close()
260 for (auto cit = mCache.mClients.begin(); cit != mCache.mClients.end();) { in close()
264 cit = mCache.mClients.erase(cit); in close()
383 std::lock_guard<std::mutex> lock1(mCache.mMutex); in cleanUp()
384 if (clearCache || mCache.mLastCleanUpMs + kCleanUpDurationMs < now) { in cleanUp()
399 for (auto cit = mCache.mClients.begin(); cit != mCache.mClients.end();) { in cleanUp()
403 cit = mCache.mClients.erase(cit); in cleanUp()
409 mCache.mLastCleanUpMs = now; in cleanUp()