Files
kotlin-fork/compiler/testData/codegen/regressions/kt1120.kt
T
2012-09-05 18:55:16 +04:00

23 lines
622 B
Kotlin

import java.util.concurrent.ConcurrentLinkedQueue
public object RefreshQueue {
private val queue = ConcurrentLinkedQueue<List<String>>
private val workerThread = Thread(object : Runnable {
override fun run() {
while (!workerThread.isInterrupted()) {
try {
// synchronized(queue) {
// queue.wait()
// }
} catch (e : InterruptedException) {
}
}
}
})
}
fun box() : String {
val t = RefreshQueue.workerThread
return "OK"
}