kotlin / 1.8 / api / latest / jvm / stdlib / kotlin.native.concurrent / -worker / platform-thread-id.html

platformThreadId

Platform and version requirements: Native (1.3)
@ExperimentalStdlibApi val platformThreadId: ULong

Get platform thread id of the worker thread.

Usually returns pthread_t casted to ULong.

© 2010–2023 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native.concurrent/-worker/platform-thread-id.html