mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
log thread starts/stops
This commit is contained in:
parent
930146cf11
commit
a67f2205bb
2 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue