[Gradle] NativeDistributionCommonizerLock: Lift lockedOutputDirectories into companion
^KT-52172 Verification Pending
This commit is contained in:
committed by
Space Team
parent
7f14255be8
commit
b706e05e65
+1
-2
@@ -16,10 +16,9 @@ internal class NativeDistributionCommonizerLock(
|
|||||||
) {
|
) {
|
||||||
private companion object {
|
private companion object {
|
||||||
val intraProcessLock: ReentrantLock = ReentrantLock()
|
val intraProcessLock: ReentrantLock = ReentrantLock()
|
||||||
|
val lockedOutputDirectories = hashSetOf<File>()
|
||||||
}
|
}
|
||||||
|
|
||||||
private val lockedOutputDirectories = mutableSetOf<File>()
|
|
||||||
|
|
||||||
fun <T> withLock(action: () -> T): T {
|
fun <T> withLock(action: () -> T): T {
|
||||||
/* Enter intra-process wide lock */
|
/* Enter intra-process wide lock */
|
||||||
intraProcessLock.withLock {
|
intraProcessLock.withLock {
|
||||||
|
|||||||
Reference in New Issue
Block a user