new thread pooling strategy and test program WIP

This commit is contained in:
Minjae Song
2018-12-14 22:53:25 +09:00
parent 6f49dcff4b
commit 513c5a17eb
8 changed files with 231 additions and 32 deletions

View File

@@ -111,7 +111,13 @@ class UINSMenu(
}
private fun popSubMenu() {
if (listStack.size == 1) throw Error("Tried to pop root menu")
if (listStack.size == 1) {
System.err.println("[UINSMenu] Tried to pop root menu")
Thread.currentThread().getStackTrace().forEach {
System.err.println(it)
}
return
}
val poppedUIItem = listStack.pop()
width -= poppedUIItem.ui.width