Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for disableForCurrentThread (0.42 sec)

  1. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/InputTrackingStateTest.kt

        @Test
        fun `disable and restore calls can be mixed non-trivially`() {
            val state = InputTrackingState()
            state.disableForCurrentThread() // <1>
            state.disableForCurrentThread() // <2>
            state.restoreForCurrentThread() // Revert <2>
            state.disableForCurrentThread() // <3>
    
            assertFalse(state.isEnabledForCurrentThread())
            state.restoreForCurrentThread() // Revert <3>
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/InputTrackingState.kt

         * enable input tracking back.
         */
        fun disableForCurrentThread() {
            ++inputTrackingDisabledCounterForThread
        }
    
        /**
         * Restores the input tracking state to the state it was in before the last call to
         * [disableForCurrentThread].
         */
        fun restoreForCurrentThread() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. platforms/enterprise/enterprise/src/main/java/org/gradle/internal/enterprise/impl/DefaultDevelocityPluginUnsafeConfigurationService.java

            this.inputTrackingState = inputTrackingState;
        }
    
        @Override
        public <T> T withConfigurationInputTrackingDisabled(Supplier<T> supplier) {
            inputTrackingState.disableForCurrentThread();
            try {
                return supplier.get();
            } finally {
                inputTrackingState.restoreForCurrentThread();
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/fingerprint/ConfigurationCacheFingerprintWriter.kt

        }
    
        override fun beforeValueObtained() {
            // Do not track additional inputs while computing a value of the value source.
            inputTrackingState.disableForCurrentThread()
        }
    
        override fun afterValueObtained() {
            inputTrackingState.restoreForCurrentThread()
        }
    
        override fun <T : Any, P : ValueSourceParameters> valueObtained(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 32.8K bytes
    - Viewed (0)
Back to top