mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-15 08:47:56 +01:00
log what's blocking the join()
This commit is contained in:
parent
0c596a7819
commit
685aa244b6
1 changed files with 9 additions and 3 deletions
|
@ -29,6 +29,7 @@ import org.eehouse.android.xw4.BuildConfig
|
||||||
import org.eehouse.android.xw4.CommsTransport
|
import org.eehouse.android.xw4.CommsTransport
|
||||||
import org.eehouse.android.xw4.ConnStatusHandler
|
import org.eehouse.android.xw4.ConnStatusHandler
|
||||||
import org.eehouse.android.xw4.DBUtils
|
import org.eehouse.android.xw4.DBUtils
|
||||||
|
import org.eehouse.android.xw4.DbgUtils
|
||||||
import org.eehouse.android.xw4.DictUtils.DictPairs
|
import org.eehouse.android.xw4.DictUtils.DictPairs
|
||||||
import org.eehouse.android.xw4.DictUtils.openDicts
|
import org.eehouse.android.xw4.DictUtils.openDicts
|
||||||
import org.eehouse.android.xw4.DupeModeTimer
|
import org.eehouse.android.xw4.DupeModeTimer
|
||||||
|
@ -160,7 +161,12 @@ class JNIThread private constructor(lockIn: GameLock) : Thread(), AutoCloseable
|
||||||
val m_cmd: JNICmd,
|
val m_cmd: JNICmd,
|
||||||
val m_isUIEvent: Boolean,
|
val m_isUIEvent: Boolean,
|
||||||
val m_args: Array<Any>
|
val m_args: Array<Any>
|
||||||
)
|
) {
|
||||||
|
override fun toString(): String
|
||||||
|
{
|
||||||
|
return "QueueElem{cmd: $m_cmd, args: ${DbgUtils.fmtAny(m_args)}}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fun configure(
|
fun configure(
|
||||||
context: Context, drawer: SyncedDraw,
|
context: Context, drawer: SyncedDraw,
|
||||||
|
@ -270,8 +276,8 @@ class JNIThread private constructor(lockIn: GameLock) : Thread(), AutoCloseable
|
||||||
|
|
||||||
@Synchronized
|
@Synchronized
|
||||||
private fun unlockOnce() {
|
private fun unlockOnce() {
|
||||||
if (null != m_lock) {
|
m_lock?.let {
|
||||||
m_lock!!.release()
|
it.release()
|
||||||
m_lock = null
|
m_lock = null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue