stdlib: rename NativeAnnotationsH.kt -> NativeConcurrentAnnotations.kt
Also move it from libraries/stdlib/common/src/kotlin to libraries/stdlib/src/kotlin/annotations
This commit is contained in:
committed by
Space
parent
25929b50d9
commit
552bd108a9
@@ -1,36 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package kotlin.native.concurrent
|
||||
|
||||
/**
|
||||
* Marks a top level property with a backing field or an object as thread local.
|
||||
* The object remains mutable and it is possible to change its state,
|
||||
* but every thread will have a distinct copy of this object,
|
||||
* so changes in one thread are not reflected in another.
|
||||
*
|
||||
* The annotation has effect only in Kotlin/Native platform.
|
||||
*
|
||||
* PLEASE NOTE THAT THIS ANNOTATION MAY GO AWAY IN UPCOMING RELEASES.
|
||||
*/
|
||||
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.CLASS)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@OptionalExpectation
|
||||
public expect annotation class ThreadLocal()
|
||||
|
||||
/**
|
||||
* Marks a top level property with a backing field as immutable.
|
||||
* It is possible to share the value of such property between multiple threads, but it becomes deeply frozen,
|
||||
* so no changes can be made to its state or the state of objects it refers to.
|
||||
*
|
||||
* The annotation has effect only in Kotlin/Native platform.
|
||||
*
|
||||
* PLEASE NOTE THAT THIS ANNOTATION MAY GO AWAY IN UPCOMING RELEASES.
|
||||
*/
|
||||
@Target(AnnotationTarget.PROPERTY)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@OptionalExpectation
|
||||
public expect annotation class SharedImmutable()
|
||||
|
||||
Reference in New Issue
Block a user