No protected inside object: performance counter fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
06cd19dd0d
commit
c77d0b9cce
@@ -63,7 +63,7 @@ public abstract class PerformanceCounter protected constructor(val name: String)
|
||||
|
||||
public fun create(name: String, vararg excluded: PerformanceCounter): PerformanceCounter = CounterWithExclude(name, *excluded)
|
||||
|
||||
protected inline fun <T> getOrPut(threadLocal: ThreadLocal<T>, default: () -> T) : T {
|
||||
internal inline fun <T> getOrPut(threadLocal: ThreadLocal<T>, default: () -> T) : T {
|
||||
var value = threadLocal.get()
|
||||
if (value == null) {
|
||||
value = default()
|
||||
|
||||
Reference in New Issue
Block a user