Is it possible to pass a Kotlin-native object pointer to C++, and then have C++ pass the pointer back to Kotlin-native? I'm trying to find out if there is any way to pass Kotlin objects between threads without serialization / deserialization.
That's essentially what I'm looking to do. Start a thread, pass some initial data to that thread, and then get a response / callback object as a response. Very similar to the current concurrent example. That would still cause a crash?
05/14/2017, 7:07 AM
in some cases - yes, however we’re working on providing proper primitive, so that it will work
05/14/2017, 8:31 PM
bah. Maybe I'll just wait for that. It's nice to know you can pass Kotlin objects to C++ using StableObjPtr though.