fun asCPointer(): COpaquePointer?Deprecated: Use kotlinx.cinterop.StableRef instead
Convert worker to a COpaquePointer value that could be passed via native void* pointer. Can be used as an argument of Worker.fromCPointer.
This function is deprecated. Use kotlinx.cinterop.StableRef.create(worker).asCPointer()
instead. The result can be unwrapped with pointer.asStableRef<Worker>().get()
. StableRef should be eventually disposed manually with StableRef.dispose.
Return worker identifier as C pointer.
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native.concurrent/-worker/as-c-pointer.html