Set fairness to true
authorLanius Trolling <lanius@laniustrolling.dev>
Sat, 10 Feb 2024 14:29:31 +0000 (09:29 -0500)
committerLanius Trolling <lanius@laniustrolling.dev>
Sat, 10 Feb 2024 14:29:31 +0000 (09:29 -0500)
src/jvmMain/kotlin/info/mechyrdia/lore/fonts.kt

index e4d8fdaeeaa66673d3ef63619fee6905a924fa79..6e27efa0bc8f9073430623ef607849a6124c8e3c 100644 (file)
@@ -43,7 +43,7 @@ object MechyrdiaSansFont {
                                        .deriveFont(DEFAULT_FONT_SIZE)
                        }
                        
-                       private val getValueLock = ReentrantLock()
+                       private val getValueLock = ReentrantLock(true)
                        
                        override fun getValue(thisRef: Any?, property: KProperty<*>): Font {
                                return getValueLock.withLock {