log thread starts/stops

This commit is contained in:
Eric House 2016-11-18 20:13:48 -08:00
parent 930146cf11
commit a67f2205bb
2 changed files with 6 additions and 0 deletions

View file

@ -142,6 +142,7 @@ public class BiDiSockWrap {
mWriteThread = new Thread( new Runnable() { mWriteThread = new Thread( new Runnable() {
@Override @Override
public void run() { public void run() {
DbgUtils.logd( getClass(), "write thread starting" );
try { try {
DataOutputStream outStream DataOutputStream outStream
= new DataOutputStream( mSocket.getOutputStream() ); = new DataOutputStream( mSocket.getOutputStream() );
@ -166,6 +167,7 @@ public class BiDiSockWrap {
} catch ( InterruptedException ie ) { } catch ( InterruptedException ie ) {
Assert.fail(); Assert.fail();
} }
DbgUtils.logd( getClass(), "write thread exiting" );
} }
} ); } );
mWriteThread.start(); mWriteThread.start();
@ -173,6 +175,7 @@ public class BiDiSockWrap {
mReadThread = new Thread( new Runnable() { mReadThread = new Thread( new Runnable() {
@Override @Override
public void run() { public void run() {
DbgUtils.logd( getClass(), "read thread starting" );
try { try {
DataInputStream inStream DataInputStream inStream
= new DataInputStream( mSocket.getInputStream() ); = new DataInputStream( mSocket.getInputStream() );
@ -187,6 +190,7 @@ public class BiDiSockWrap {
DbgUtils.logex( ioe ); DbgUtils.logex( ioe );
closeSocket(); closeSocket();
} }
DbgUtils.logd( getClass(), "read thread exiting" );
} }
} ); } );
mReadThread.start(); mReadThread.start();

View file

@ -752,6 +752,7 @@ public class WiDirService extends XWService {
sAmServer = true; sAmServer = true;
sAcceptThread = new Thread( new Runnable() { sAcceptThread = new Thread( new Runnable() {
public void run() { public void run() {
DbgUtils.logd( CLAZZ, "accept thread starting" );
try { try {
sServerSock = new ServerSocket( OWNER_PORT ); sServerSock = new ServerSocket( OWNER_PORT );
while ( sAmServer ) { while ( sAmServer ) {
@ -764,6 +765,7 @@ public class WiDirService extends XWService {
sAmServer = false; sAmServer = false;
DbgUtils.logex( ioe ); DbgUtils.logex( ioe );
} }
DbgUtils.logd( CLAZZ, "accept thread exiting" );
} }
} ); } );
sAcceptThread.start(); sAcceptThread.start();