Fix several typos in docs of K/N runtime (#5054)
This commit is contained in:
@@ -70,7 +70,7 @@ public object Platform {
|
|||||||
get() = OsFamily.values()[Platform_getOsFamily()]
|
get() = OsFamily.values()[Platform_getOsFamily()]
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Architechture of the CPU program executes upon.
|
* Architecture of the CPU program executes upon.
|
||||||
*/
|
*/
|
||||||
public val cpuArchitecture: CpuArchitecture
|
public val cpuArchitecture: CpuArchitecture
|
||||||
get() = CpuArchitecture.values()[Platform_getCpuArchitecture()]
|
get() = CpuArchitecture.values()[Platform_getCpuArchitecture()]
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ internal class AtomicLazyImpl<out T>(initializer: () -> T) : Lazy<T> {
|
|||||||
* Atomic lazy initializer, could be used in frozen objects, freezes initializing lambda,
|
* Atomic lazy initializer, could be used in frozen objects, freezes initializing lambda,
|
||||||
* so use very carefully. Also, as with other uses of an [AtomicReference] may potentially
|
* so use very carefully. Also, as with other uses of an [AtomicReference] may potentially
|
||||||
* leak memory, so it is recommended to use `atomicLazy` in cases of objects living forever,
|
* leak memory, so it is recommended to use `atomicLazy` in cases of objects living forever,
|
||||||
* such as object signletons, or in cases where it's guaranteed not to have cyclical garbage.
|
* such as object singletons, or in cases where it's guaranteed not to have cyclical garbage.
|
||||||
*/
|
*/
|
||||||
@FreezingIsDeprecated
|
@FreezingIsDeprecated
|
||||||
public fun <T> atomicLazy(initializer: () -> T): Lazy<T> = AtomicLazyImpl(initializer)
|
public fun <T> atomicLazy(initializer: () -> T): Lazy<T> = AtomicLazyImpl(initializer)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ external private fun CopyMemory(to: COpaquePointer?, from: COpaquePointer?, coun
|
|||||||
internal external fun readHeapRefNoLock(where: Any, index: Int): Any?
|
internal external fun readHeapRefNoLock(where: Any, index: Int): Any?
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mutable concurrently accessible data buffer. Could be accessed from several workers simulteniously.
|
* Mutable concurrently accessible data buffer. Could be accessed from several workers simultaneously.
|
||||||
*/
|
*/
|
||||||
@Frozen
|
@Frozen
|
||||||
@NoReorderFields
|
@NoReorderFields
|
||||||
|
|||||||
@@ -38,11 +38,11 @@ import kotlin.native.internal.Frozen
|
|||||||
// Not @FreezingIsDeprecated: every `Worker.execute` uses this.
|
// Not @FreezingIsDeprecated: every `Worker.execute` uses this.
|
||||||
public enum class TransferMode(val value: Int) {
|
public enum class TransferMode(val value: Int) {
|
||||||
/**
|
/**
|
||||||
* Reachibility check is performed.
|
* Reachability check is performed.
|
||||||
*/
|
*/
|
||||||
SAFE(0),
|
SAFE(0),
|
||||||
/**
|
/**
|
||||||
* Skip reachibility check, can lead to mysterious crashes in an application.
|
* Skip reachability check, can lead to mysterious crashes in an application.
|
||||||
* USE UNSAFE MODE ONLY IF ABSOLUTELY SURE WHAT YOU'RE DOING!!!
|
* USE UNSAFE MODE ONLY IF ABSOLUTELY SURE WHAT YOU'RE DOING!!!
|
||||||
*/
|
*/
|
||||||
UNSAFE(1)
|
UNSAFE(1)
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ external fun getCachedLongBox(value: Long): Long?
|
|||||||
@GCUnsafeCall("inLongBoxCache")
|
@GCUnsafeCall("inLongBoxCache")
|
||||||
external fun inLongBoxCache(value: Long): Boolean
|
external fun inLongBoxCache(value: Long): Boolean
|
||||||
|
|
||||||
// TODO: functions below are used for ObjCExport and CAdapterGenerator, move and rename them correspondigly.
|
// TODO: functions below are used for ObjCExport and CAdapterGenerator, move and rename them correspondingly.
|
||||||
|
|
||||||
@ExportForCppRuntime("Kotlin_boxBoolean")
|
@ExportForCppRuntime("Kotlin_boxBoolean")
|
||||||
fun boxBoolean(value: Boolean): Boolean? = value
|
fun boxBoolean(value: Boolean): Boolean? = value
|
||||||
|
|||||||
Reference in New Issue
Block a user