From 10b76eacf04c99d1a7b7f9d7659d413b31864401 Mon Sep 17 00:00:00 2001 From: Pavel Punegov Date: Thu, 18 Oct 2018 17:17:58 +0300 Subject: [PATCH] Make ThreadLocal and SharedImmutable be actual classes for OptionalExpectations and move to kotlin.native.concurrent --- .../main/kotlin/kotlin/native/Annotations.kt | 18 +++++++++++------- .../kotlin/native/concurrent/Annotations.kt | 4 +++- 2 files changed, 14 insertions(+), 8 deletions(-) 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