Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for restoreForCurrentThread (0.2 sec)

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

            state.disableForCurrentThread() // <2>
            state.restoreForCurrentThread() // Revert <2>
            state.disableForCurrentThread() // <3>
    
            assertFalse(state.isEnabledForCurrentThread())
            state.restoreForCurrentThread() // Revert <3>
    
            assertFalse(state.isEnabledForCurrentThread())
            state.restoreForCurrentThread() // Revert <1>
    
            assertTrue(state.isEnabledForCurrentThread())
        }
    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

        /**
         * Disables input tracking for the current thread. Multiple calls to this method "stack", so if
         * this method was called twice then [restoreForCurrentThread] should also be called twice to
         * enable input tracking back.
         */
        fun disableForCurrentThread() {
            ++inputTrackingDisabledCounterForThread
        }
    
        /**
    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

            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

            inputTrackingState.disableForCurrentThread()
        }
    
        override fun afterValueObtained() {
            inputTrackingState.restoreForCurrentThread()
        }
    
        override fun <T : Any, P : ValueSourceParameters> valueObtained(
            obtainedValue: ValueSourceProviderFactory.ValueListener.ObtainedValue<T, P>,
    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