package com.unity3d.scar.adapter.common; /* loaded from: classes2.dex */ public class a { /* renamed from: a, reason: collision with root package name */ private int f7791a = 0; /* renamed from: b, reason: collision with root package name */ private Runnable f7792b; private void d() { Runnable runnable; if (this.f7791a > 0 || (runnable = this.f7792b) == null) { return; } runnable.run(); } public synchronized void a() { this.f7791a++; } public synchronized void b() { this.f7791a--; d(); } public void c(Runnable runnable) { this.f7792b = runnable; d(); } }