MCPcopy Create free account
hub / github.com/e2wugui/zeze / unlock

Method unlock

ZezeJava/ZezeJava/src/main/java/Zeze/Raft/Raft.java:117–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115 }
116
117 public void unlock() {
118// unlockTime = System.currentTimeMillis();
119// var t = unlockTime - lockTime;
120// if (t > 500) {
121// logger.warn("--- lock time too long: {}", t, new Exception());
122// }
123 mutex.unlock();
124 }
125
126 public boolean tryLock() {
127 return mutex.tryLock();

Callers 12

OnSocketCloseMethod · 0.95
OnSocketHandshakeDoneMethod · 0.95
shutdownMethod · 0.95
processAppendEntriesMethod · 0.95
onTimerMethod · 0.95
waitLeaderReadyMethod · 0.95
isReadyLeaderMethod · 0.95
processRequestVoteMethod · 0.95
checkpointMethod · 0.95
checkpointMethod · 0.95

Calls 1

unlockMethod · 0.65

Tested by

no test coverage detected