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