Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for currentThread (8.55 sec)

  1. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/Interpreter.kt

    
    private
    inline fun withContextClassLoader(classLoader: ClassLoader, block: () -> Unit) {
        val currentThread = Thread.currentThread()
        val previous = currentThread.contextClassLoader
        try {
            currentThread.contextClassLoader = classLoader
            block()
        } finally {
            currentThread.contextClassLoader = previous
        }
    }
    
    
    private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 26 19:59:56 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/InterpreterTest.kt

            val text = """
    
                buildscript {
                    require(Thread.currentThread().contextClassLoader === this@Settings_gradle.javaClass.classLoader)
                    println("stage 1")
                }
    
                require(Thread.currentThread().contextClassLoader === this@Settings_gradle.javaClass.classLoader)
                println("stage 2")
    
            """.trimIndent()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:45 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/Workarounds.kt

                    isBuildScanPlugin(className)
                }
            }
    
        private
        inline fun callStackHasElement(stackElementMatcher: StackTraceElement.() -> Boolean) = Thread.currentThread().stackTrace.any(stackElementMatcher)
    
        private
        fun isBuildScanPlugin(from: String): Boolean = from.run {
            startsWith("com.gradle.scan.plugin.internal.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/problems/ConfigurationCacheReport.kt

                private
                val writer = HtmlReportWriter(hashingStream.writer())
    
                init {
                    executor.submit {
                        Thread.currentThread().contextClassLoader = groovyJsonClassLoader
                        writer.beginHtmlReport()
                    }
                }
    
                override fun onDiagnostic(kind: DiagnosticKind, problem: PropertyProblem): State {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl-provider-plugins/src/main/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/tasks/GeneratePrecompiledScriptPluginAccessors.kt

            isCapturing = null
        }
    
        private
        fun safely(block: () -> Unit) =
            try {
                synchronized(this, block)
            } catch (ex: InterruptedException) {
                Thread.currentThread().interrupt()
            }
    
        private
        val doCapture: Boolean
            get() = isCapturing != null && isCapturing!!.get()
    }
    
    
    private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:10:49 UTC 2024
    - 24.8K bytes
    - Viewed (0)
Back to top