Searched refs:withLock (Results 1 – 11 of 11) sorted by relevance
23 import kotlin.concurrent.withLock79 override val size get() = lock.withLock { elements.size } in hasNext()80 override fun contains(element: E) = lock.withLock { elements.contains(element) } in <lambda>()81 override fun containsAll(elements: Collection<E>) = lock.withLock { in <lambda>()84 override operator fun get(index: Int) = lock.withLock { elements[index] } in <lambda>()85 override fun indexOf(element: E): Int = lock.withLock { elements.indexOf(element) } in <lambda>()86 override fun lastIndexOf(element: E): Int = lock.withLock { elements.lastIndexOf(element) } in <lambda>()87 override fun isEmpty() = lock.withLock { elements.isEmpty() } in <lambda>()91 override fun subList(fromIndex: Int, toIndex: Int): List<E> = lock.withLock { in listIterator()97 lock.withLock { in add()[all …]
36 import kotlin.concurrent.withLock103 mDrawLock.withLock { in createSurfaceView()120 mDrawLock.withLock { in createSurfaceView()129 mDrawLock.withLock { in drawFrame()
185 void IBinder::withLock(const std::function<void()>& doWithLock) { in withLock() function in android::IBinder188 local->withLock(doWithLock); in withLock()193 proxy->withLock(doWithLock); in withLock()360 void BBinder::withLock(const std::function<void()>& doWithLock) { in withLock() function in android::BBinder
462 void BpBinder::withLock(const std::function<void()>& doWithLock) { in withLock() function in android::BpBinder
76 import kotlinx.coroutines.sync.withLock in <lambda>()331 applicationScope.launch { callbackMutex.withLock { callbacks.add(callback) } } in <lambda>()335 applicationScope.launch { callbackMutex.withLock { callbacks.remove(callback) } } in <lambda>()522 callbackMutex.withLock { in <lambda>()
283 void withLock(const std::function<void()>& doWithLock);
61 void withLock(const std::function<void()>& doWithLock);
74 void withLock(const std::function<void()>& doWithLock);
255 remote()->withLock([&]() { value->binder = nullptr; }); in onLastStrongRef()286 binder->withLock([&]() { in lookupOrCreateFromBinder()