Kotlin / kotlinx-atomicfu

The idiomatic way to use atomic operations in Kotlin
Other
823 stars 56 forks source link

Support unsigned primitives #41

Open ndkoval opened 5 years ago

ndkoval commented 5 years ago

Support AtomicUInt, AtomicULong, and similar atomic unsigned primitives.

lppedd commented 4 weeks ago

Any chance unsigned variants get some love?

They can be useful, but if there is not enough general support it's difficult to see people adopting them. More support in kotlinx libs would help.

lppedd commented 4 weeks ago

Although... I've just experimented a little bit with unsigned numbers in a multiplatform environment.

I'm not sure we want the introduced overhead when dealing with atomics. U* are value classes, but the underlying value is still guarded by method calls / constructor calls.