package com.facebook.internal; import com.facebook.FacebookSdk; import java.util.concurrent.Callable; import java.util.concurrent.CountDownLatch; import java.util.concurrent.FutureTask; /* loaded from: classes.dex */ public class LockOnGetVariable { private T a; private CountDownLatch b = new CountDownLatch(1); public LockOnGetVariable(final Callable callable) { FacebookSdk.h().execute(new FutureTask(new Callable() { // from class: com.facebook.internal.LockOnGetVariable.1 @Override // java.util.concurrent.Callable public Void call() throws Exception { try { LockOnGetVariable.this.a = callable.call(); LockOnGetVariable.this.b.countDown(); return null; } catch (Throwable th) { LockOnGetVariable.this.b.countDown(); throw th; } } })); } }