I was wondering if the Atomic variables will be available on the native platform. By looking at the documentation now, it seems that the only purpose of AtomicSomething classes is to map to some equivalent in Java so the question is: is this library common among the platforms targeted by Kotlin?
Sorry for having opened an issue on kotlinx.atomicfu, it passed unoticed though.
Interop with C functions atomically updating memory locations is available in K/N. For example on macOS functions like OSAtomicIncrement32() are there in platform libs already.
Does this mean that the library linked will only target the JVM?
Probably yes, ask library devs.
@elizarov mentioned, that he's porting atomicfu to Native, so likely it will be eventually available.
More of a libraries issue, closing.
Most helpful comment
@elizarov mentioned, that he's porting atomicfu to Native, so likely it will be eventually available.