- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
30 lines
650 B
Java
30 lines
650 B
Java
package com.unity3d.scar.adapter.common;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class DispatchGroup {
|
|
private Runnable _runnable;
|
|
private int _threadCount = 0;
|
|
|
|
public synchronized void enter() {
|
|
this._threadCount++;
|
|
}
|
|
|
|
public synchronized void leave() {
|
|
this._threadCount--;
|
|
notifyGroup();
|
|
}
|
|
|
|
public void notify(Runnable runnable) {
|
|
this._runnable = runnable;
|
|
notifyGroup();
|
|
}
|
|
|
|
private void notifyGroup() {
|
|
Runnable runnable;
|
|
if (this._threadCount > 0 || (runnable = this._runnable) == null) {
|
|
return;
|
|
}
|
|
runnable.run();
|
|
}
|
|
}
|