- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
26 lines
719 B
Java
26 lines
719 B
Java
package androidx.collection.internal;
|
|
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.internal.InlineMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class Lock {
|
|
public final <T> T synchronizedImpl(Function0 block) {
|
|
T t;
|
|
Intrinsics.checkNotNullParameter(block, "block");
|
|
synchronized (this) {
|
|
try {
|
|
t = (T) block.invoke();
|
|
InlineMarker.finallyStart(1);
|
|
} catch (Throwable th) {
|
|
InlineMarker.finallyStart(1);
|
|
InlineMarker.finallyEnd(1);
|
|
throw th;
|
|
}
|
|
}
|
|
InlineMarker.finallyEnd(1);
|
|
return t;
|
|
}
|
|
}
|