- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for isEnabledForCurrentThread (0.28 sec)
-
platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/InputTrackingStateTest.kt
state.disableForCurrentThread() // <3> assertFalse(state.isEnabledForCurrentThread()) state.restoreForCurrentThread() // Revert <3> assertFalse(state.isEnabledForCurrentThread()) state.restoreForCurrentThread() // Revert <1> assertTrue(state.isEnabledForCurrentThread()) } @Test fun `initial restore is an exception`() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 3.7K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/InputTrackingState.kt
class InputTrackingState { private var inputTrackingDisabledCounterForThread by ThreadLocal.withInitial { 0 } /** * Returns input tracking status for the current thread. */ fun isEnabledForCurrentThread(): Boolean = inputTrackingDisabledCounterForThread == 0 /** * Disables input tracking for the current thread. Multiple calls to this method "stack", so if
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 2.5K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/initialization/ConfigurationCacheProblemsListener.kt
} ?: false private fun atConfigurationTime() = configurationTimeBarrier.isAtConfigurationTime private fun isInputTrackingDisabled() = !inputTrackingState.isEnabledForCurrentThread() private fun isExecutingWork() = workExecutionTracker.currentTask.isPresent || workExecutionTracker.isExecutingTransformAction
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 8.4K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/fingerprint/ConfigurationCacheFingerprintWriter.kt
closestChangingValue = changingValue } } } private fun isInputTrackingDisabled() = !inputTrackingState.isEnabledForCurrentThread() private fun isExecutingWork() = workExecutionTracker.currentTask.isPresent || workExecutionTracker.isExecutingTransformAction override fun fileObserved(file: File) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:30 UTC 2024 - 32.8K bytes - Viewed (0)