blob: fffd76c4524a1159e59d2cd4bc9b60d68e06d479 [file] [log] [blame]
/*
* Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.coroutines.internal
internal actual class LocalAtomicInt actual constructor(private var value: Int) {
actual fun set(value: Int) {
this.value = value
}
actual fun get(): Int = value
actual fun decrementAndGet(): Int = --value
}