Searched refs:sLocks (Results 1 – 2 of 2) sorted by relevance
42 private static final Map<String, FileLockEntry> sLocks = new HashMap<>(); field in ClipStorageReader52 synchronized (sLocks) { in ClipStorageReader()53 if (sLocks.containsKey(mCanonicalPath)) { in ClipStorageReader()56 sLocks.get(mCanonicalPath).mCount++; in ClipStorageReader()61 sLocks.put(mCanonicalPath, new FileLockEntry(1, lock, mScanner)); in ClipStorageReader()74 synchronized (sLocks) { in close()75 ref = sLocks.get(mCanonicalPath); in close()83 sLocks.remove(mCanonicalPath); in close()
55 private static final ConcurrentMap<Integer, Integer> sLocks = new ConcurrentHashMap<>(); field in RateLimiter255 sLocks.putIfAbsent(uid, uid); in getLockObject()256 return sLocks.get(uid); in getLockObject()