diff --git a/runtime/src/main/kotlin/kotlin/native/Annotations.kt b/runtime/src/main/kotlin/kotlin/native/Annotations.kt index daa91f3a3f5..eb89c913b5d 100644 --- a/runtime/src/main/kotlin/kotlin/native/Annotations.kt +++ b/runtime/src/main/kotlin/kotlin/native/Annotations.kt @@ -40,6 +40,16 @@ public annotation class Retain @Retention(AnnotationRetention.SOURCE) public annotation class Throws(vararg val exceptionClasses: KClass) +@Deprecated("ThreadLocal was moved to kotlin.native.concurrent package " + + "and became available in Kotlin Common as optional annotation", + ReplaceWith("kotlin.native.concurrent.ThreadLocal")) +public typealias ThreadLocal = kotlin.native.concurrent.ThreadLocal + +@Deprecated("SharedImmutable was moved to kotlin.native.concurrent package " + + "and became available in Kotlin Common as optional annotation", + ReplaceWith("kotlin.native.concurrent.SharedImmutable")) +public typealias SharedImmutable = kotlin.native.concurrent.SharedImmutable + /** * Makes top level function available from C/C++ code with the given name. * @@ -48,10 +58,4 @@ public annotation class Throws(vararg val exceptionClasses: KClass