mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +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() {
|
||||
@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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue