- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ResurrectingThread (0.43 sec)
-
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/concurrent/ResurrectingThread.kt
* limitations under the License. */ package org.gradle.kotlin.dsl.concurrent import kotlin.concurrent.thread /** * A thread that comes back to life when [poke]d. */ internal class ResurrectingThread(val name: String, val block: () -> Unit) { private var thread: Thread? = null /** * Checks if the thread is alive, resurrecting it if it's not. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 1.1K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/resolver/KotlinBuildScriptModelRepository.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.kotlin.dsl.resolver import org.gradle.kotlin.dsl.concurrent.ResurrectingThread import org.gradle.kotlin.dsl.tooling.models.KotlinBuildScriptModel import kotlin.coroutines.Continuation import kotlin.coroutines.suspendCoroutine private
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 2.9K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/concurrent/EventLoop.kt
consumer.poke() return true } return false } private val q = ArrayBlockingQueue<T>(64) private var consumer = ResurrectingThread(name = name) { loop(::poll) } private fun poll(): T? = q.poll(pollTimeoutMillis, TimeUnit.MILLISECONDS) } private const val offerTimeoutMillis = 50L internal
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 1.4K bytes - Viewed (0)