package com.bytedance.refcache;

import X.4Sh;
import android.os.SystemClock;
import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;
import com.bytedance.librarian.Librarian;

public class FileLocker {
    public static native int getStatus(String str);

    static {
        Covode.recordClassIndex(36963);
        long uptimeMillis = SystemClock.uptimeMillis();
        Librarian.LIZ("flock-lib");
        4Sh.LIZ(uptimeMillis, "flock-lib");
    }

    public static boolean LIZ(String str) {
        boolean z;
        MethodCollector.i(9944);
        if (getStatus(str) >= 0) {
            z = true;
        } else {
            z = false;
        }
        MethodCollector.o(9944);
        return z;
    }
}
