MCPcopy Index your code
hub / github.com/clojure/clojure / currentVal

Method currentVal

src/jvm/clojure/lang/Ref.java:98–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97// ok out of transaction
98Object currentVal(){
99 try
100 {
101 lock.readLock().lock();
102 if(tvals != null)
103 return tvals.val;
104 throw new IllegalStateException(this.toString() + " is unbound.");
105 }
106 finally
107 {
108 lock.readLock().unlock();
109 }
110}
111
112//*
113

Callers 1

derefMethod · 0.95

Calls 2

lockMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected