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() {
@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();

View file

@ -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();