Esempio n. 1
0
 public static void setPolicy(CycleDetectingLockFactory.Policy policy) {
   Threading.policy = policy;
   factory = CycleDetectingLockFactory.newInstance(policy);
 }
Esempio n. 2
0
 public static ReentrantLock lock(String name) {
   if (Utils.isAndroidRuntime()) return new ReentrantLock(true);
   else return factory.newReentrantLock(name);
 }