We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 623be54 commit 2d04e25Copy full SHA for 2d04e25
1 file changed
jvm/selfie-lib/src/commonMain/kotlin/com/diffplug/selfie/guts/AtomicFuBroken.kt
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright (C) 2024 DiffPlug
+ * Copyright (C) 2024-2025 DiffPlug
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
@@ -24,12 +24,8 @@ expect class AtomicRef<T> {
24
/** Replace with atomicfu when stable. */
25
expect fun <T> atomic(initial: T): AtomicRef<T>
26
27
-expect fun reentrantLock(): ReentrantLock
+expect class ReentrantLock
28
29
-expect class ReentrantLock {
30
- fun lock(): Unit
31
- fun tryLock(): Boolean
32
- fun unlock(): Unit
33
-}
+expect fun reentrantLock(): ReentrantLock
34
35
expect inline fun <T> ReentrantLock.withLock(block: () -> T): T
0 commit comments