From a67f2205bbe6b1abfbbf04c943ffa59d394d1392 Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 18 Nov 2016 20:13:48 -0800 Subject: [PATCH] log thread starts/stops --- .../XWords4/src/org/eehouse/android/xw4/BiDiSockWrap.java | 4 ++++ .../XWords4/src/org/eehouse/android/xw4/WiDirService.java | 2 ++ 2 files changed, 6 insertions(+) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BiDiSockWrap.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BiDiSockWrap.java index 088f96653..d8fdfb93e 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BiDiSockWrap.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BiDiSockWrap.java @@ -142,6 +142,7 @@ public class BiDiSockWrap { mWriteThread = new Thread( new Runnable() { @Override public void run() { + DbgUtils.logd( getClass(), "write thread starting" ); try { DataOutputStream outStream = new DataOutputStream( mSocket.getOutputStream() ); @@ -166,6 +167,7 @@ public class BiDiSockWrap { } catch ( InterruptedException ie ) { Assert.fail(); } + DbgUtils.logd( getClass(), "write thread exiting" ); } } ); mWriteThread.start(); @@ -173,6 +175,7 @@ public class BiDiSockWrap { mReadThread = new Thread( new Runnable() { @Override public void run() { + DbgUtils.logd( getClass(), "read thread starting" ); try { DataInputStream inStream = new DataInputStream( mSocket.getInputStream() ); @@ -187,6 +190,7 @@ public class BiDiSockWrap { DbgUtils.logex( ioe ); closeSocket(); } + DbgUtils.logd( getClass(), "read thread exiting" ); } } ); mReadThread.start(); diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/WiDirService.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/WiDirService.java index f55ea61a9..bbf690c1c 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/WiDirService.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/WiDirService.java @@ -752,6 +752,7 @@ public class WiDirService extends XWService { sAmServer = true; sAcceptThread = new Thread( new Runnable() { public void run() { + DbgUtils.logd( CLAZZ, "accept thread starting" ); try { sServerSock = new ServerSocket( OWNER_PORT ); while ( sAmServer ) { @@ -764,6 +765,7 @@ public class WiDirService extends XWService { sAmServer = false; DbgUtils.logex( ioe ); } + DbgUtils.logd( CLAZZ, "accept thread exiting" ); } } ); sAcceptThread.start();