MCPcopy Create free account
hub / github.com/MTrop/DoomTools / uniqueKey

Method uniqueKey

src/main/java/net/mtrop/doom/tools/struct/Loader.java:444–453  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

442
443 // Fetch a unique id suitable for mutex.
444 private String uniqueKey(String name)
445 {
446 WeakReference<String> out;
447 synchronized (mutexMap)
448 {
449 if ((out = mutexMap.get(name)) == null)
450 mutexMap.put(name, out = new WeakReference<String>(name));
451 }
452 return out.get();
453 }
454
455 // Releases a mutex.
456 private void releaseKey(String name)

Callers 1

getObjectMethod · 0.95

Calls 2

putMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected