Home
last modified time | relevance | path

Searched refs:enterCount (Results 1 – 4 of 4) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DRunInterruptibleStressTest.kt24 val enterCount = AtomicInteger(0) in <lambda>() constant
31 enterCount.incrementAndGet() in <lambda>()
53 … assertTrue(enterCount.get() > 0) // ensure timing is Ok and we don't cancel it all prematurely in <lambda>()
54 assertEquals(enterCount.get(), interruptedCount.get()) in <lambda>()
/external/guice/core/src/com/google/inject/internal/
DInternalContext.java55 private int enterCount; field in InternalContext
67 this.enterCount = 1; in InternalContext()
72 enterCount++; in enter()
78 int newCount = --enterCount; in close()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DMonitorTestCase.java131 private void checkSystemStateMethods(int enterCount) throws Exception { in checkSystemStateMethods() argument
132 thread1.callAndAssertReturns(enterCount != 0, "isOccupied"); in checkSystemStateMethods()
133 thread1.callAndAssertReturns(enterCount != 0, "isOccupiedByCurrentThread"); in checkSystemStateMethods()
134 thread1.callAndAssertReturns(enterCount, "getOccupiedDepth"); in checkSystemStateMethods()
136 thread2.callAndAssertReturns(enterCount != 0, "isOccupied"); in checkSystemStateMethods()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DMonitorTestCase.java131 private void checkSystemStateMethods(int enterCount) throws Exception { in checkSystemStateMethods() argument
132 thread1.callAndAssertReturns(enterCount != 0, "isOccupied"); in checkSystemStateMethods()
133 thread1.callAndAssertReturns(enterCount != 0, "isOccupiedByCurrentThread"); in checkSystemStateMethods()
134 thread1.callAndAssertReturns(enterCount, "getOccupiedDepth"); in checkSystemStateMethods()
136 thread2.callAndAssertReturns(enterCount != 0, "isOccupied"); in checkSystemStateMethods()