From 31df1ddc52c82809d45fb0a473f686317e985f2a Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Thu, 23 May 2019 17:30:05 +0300 Subject: [PATCH] Small tweaks in DetachedObjectGraph docs. --- .../main/kotlin/kotlin/native/concurrent/ObjectTransfer.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/runtime/src/main/kotlin/kotlin/native/concurrent/ObjectTransfer.kt b/runtime/src/main/kotlin/kotlin/native/concurrent/ObjectTransfer.kt index 721841d1432..146642298a1 100644 --- a/runtime/src/main/kotlin/kotlin/native/concurrent/ObjectTransfer.kt +++ b/runtime/src/main/kotlin/kotlin/native/concurrent/ObjectTransfer.kt @@ -62,7 +62,7 @@ public class DetachedObjectGraph internal constructor(pointer: NativePtr) { : this(detachObjectGraphInternal(mode.value, producer as () -> Any?)) /** - * Creates detached object graph from value stored earlier in a C raw pointer. + * Restores detached object graph from the value stored earlier in a C raw pointer. */ public constructor(pointer: COpaquePointer?) : this(pointer?.rawValue ?: NativePtr.NULL) @@ -74,8 +74,9 @@ public class DetachedObjectGraph internal constructor(pointer: NativePtr) { /** * Attaches previously detached object subgraph created by [DetachedObjectGraph]. - * Please note, that once object graph is attached, the [DetachedObjectGraph.stable] pointer does not have sense anymore, - * and shall be discarded. + * Please note, that once object graph is attached, the [DetachedObjectGraph.stable] pointer does not + * make sense anymore, and shall be discarded, so attach of one DetachedObjectGraph object can only + * happen once. */ public inline fun DetachedObjectGraph.attach(): T { var rawStable: NativePtr