MCPcopy Create free account
hub / github.com/M66B/FairEmail / getThreadLock

Method getThreadLock

app/src/main/java/androidx/room/CopyLock.java:102–111  ·  view source on GitHub ↗
(String key)

Source from the content-addressed store, hash-verified

100 }
101
102 private static Lock getThreadLock(String key) {
103 synchronized (sThreadLocks) {
104 Lock threadLock = sThreadLocks.get(key);
105 if (threadLock == null) {
106 threadLock = new ReentrantLock();
107 sThreadLocks.put(key, threadLock);
108 }
109 return threadLock;
110 }
111 }
112}

Callers 1

CopyLockMethod · 0.95

Calls 2

getMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected