File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
jvm/selfie-lib/src/commonMain/kotlin/com/diffplug/selfie/guts Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (C) 2024 DiffPlug
2
+ * Copyright (C) 2024-2025 DiffPlug
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -24,12 +24,8 @@ expect class AtomicRef<T> {
24
24
/* * Replace with atomicfu when stable. */
25
25
expect fun <T > atomic (initial : T ): AtomicRef <T >
26
26
27
- expect fun reentrantLock (): ReentrantLock
27
+ expect class ReentrantLock
28
28
29
- expect class ReentrantLock {
30
- fun lock (): Unit
31
- fun tryLock (): Boolean
32
- fun unlock (): Unit
33
- }
29
+ expect fun reentrantLock (): ReentrantLock
34
30
35
31
expect inline fun <T > ReentrantLock.withLock (block : () -> T ): T
You can’t perform that action at this time.
0 commit comments