62 lines
1.8 KiB
Java
62 lines
1.8 KiB
Java
|
package com.kofax.mobile.sdk.u;
|
||
|
|
||
|
import bolts.CancellationToken;
|
||
|
import com.kofax.kmc.kut.utilities.error.ErrorInfo;
|
||
|
import com.kofax.kmc.kut.utilities.error.KmcRuntimeException;
|
||
|
import com.kofax.mobile.sdk.w.j;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public class c extends e {
|
||
|
private static boolean wq;
|
||
|
private final j NY;
|
||
|
|
||
|
public c(j jVar) {
|
||
|
this.NY = jVar;
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.mobile.sdk.u.e, com.kofax.mobile.sdk.e.c
|
||
|
public void a(Object obj, CancellationToken cancellationToken) {
|
||
|
synchronized (this) {
|
||
|
synchronized (c.class) {
|
||
|
if (wq) {
|
||
|
throw new KmcRuntimeException(ErrorInfo.KMC_EV_PROCESS_PAGE_BUSY);
|
||
|
}
|
||
|
wq = true;
|
||
|
}
|
||
|
new Thread(this, obj, cancellationToken) { // from class: com.kofax.mobile.sdk.u.c.1
|
||
|
final Object NZ;
|
||
|
final CancellationToken Oa;
|
||
|
final c Ob;
|
||
|
|
||
|
{
|
||
|
this.Ob = this;
|
||
|
this.NZ = obj;
|
||
|
this.Oa = cancellationToken;
|
||
|
}
|
||
|
|
||
|
@Override // java.lang.Thread, java.lang.Runnable
|
||
|
public void run() {
|
||
|
this.Ob.b(this.NZ, this.Oa);
|
||
|
}
|
||
|
}.start();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
public void b(Object obj, CancellationToken cancellationToken) {
|
||
|
try {
|
||
|
super.a(obj, cancellationToken);
|
||
|
synchronized (c.class) {
|
||
|
this.NY.a(obj, cancellationToken);
|
||
|
wq = false;
|
||
|
}
|
||
|
} catch (Throwable th) {
|
||
|
synchronized (c.class) {
|
||
|
this.NY.a(obj, cancellationToken);
|
||
|
wq = false;
|
||
|
throw th;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|