MCPcopy Index your code
hub / github.com/careercup/ctci / getLock

Method getLock

java/Chapter 16/Question16_4/LockNode.java:61–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 }
60
61 public Lock getLock() {
62 if (lock == null) {
63 lock = new ReentrantLock();
64 }
65 return lock;
66 }
67
68 public int getId() {
69 return lockId;

Callers 1

getLockMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected