Skip to content
Snippets Groups Projects
Commit 6d2f0509 authored by Brutzman, Don's avatar Brutzman, Don
Browse files

javadoc

parent 178b06cc
No related branches found
No related tags found
No related merge requests found
...@@ -605,6 +605,8 @@ public class DisThreadedNetworkInterface ...@@ -605,6 +605,8 @@ public class DisThreadedNetworkInterface
System.err.println (TRACE_PREFIX + "close()() unexpected exception!"); System.err.println (TRACE_PREFIX + "close()() unexpected exception!");
} }
} }
/** Tell thread to stop.
* @param threadToKill of interest */
public void killThread(Thread threadToKill) public void killThread(Thread threadToKill)
{ {
try { // join and kill threadToKill try { // join and kill threadToKill
...@@ -624,9 +626,11 @@ public class DisThreadedNetworkInterface ...@@ -624,9 +626,11 @@ public class DisThreadedNetworkInterface
String threadAlive = "null"; String threadAlive = "null";
if (threadToKill != null) if (threadToKill != null)
{
threadAlive = String.valueOf(threadToKill.isAlive()); threadAlive = String.valueOf(threadToKill.isAlive());
System.out.println ("*** killThread() status: " + threadToKill.getName() + ".isAlive()=" + threadAlive + System.out.println ("*** killThread() status: " + threadToKill.getName() + ".isAlive()=" + threadAlive +
" " + threadToKill.getName() + ".isInterrupted()=" + threadToKill.isInterrupted()); " " + threadToKill.getName() + ".isInterrupted()=" + threadToKill.isInterrupted());
}
System.err.flush(); // ensure all output sent System.err.flush(); // ensure all output sent
System.out.flush(); // ensure all output sent System.out.flush(); // ensure all output sent
} }
......
...@@ -4,8 +4,6 @@ Deleting: C:\x3d-github\open-dis7-java\build\built-jar.properties ...@@ -4,8 +4,6 @@ Deleting: C:\x3d-github\open-dis7-java\build\built-jar.properties
deps-jar: deps-jar:
Updating property file: C:\x3d-github\open-dis7-java\build\built-jar.properties Updating property file: C:\x3d-github\open-dis7-java\build\built-jar.properties
Compiling 1 source file to C:\x3d-github\open-dis7-java\build\classes Compiling 1 source file to C:\x3d-github\open-dis7-java\build\classes
warning: [options] bootstrap class path not set in conjunction with -source 8
1 warning
compile-single: compile-single:
run-single: run-single:
[DisThreadedNetworkInterface] main() started... [DisThreadedNetworkInterface] main() started...
...@@ -15,10 +13,10 @@ run-single: ...@@ -15,10 +13,10 @@ run-single:
[DisThreadedNetworkInterface main() self test] createThreads() sendingThread.isAlive()=true [DisThreadedNetworkInterface main() self test] createThreads() sendingThread.isAlive()=true
[DisThreadedNetworkInterface main() self test] main() self test initialized... [DisThreadedNetworkInterface main() self test] main() self test initialized...
[DisThreadedNetworkInterface main() self test] self test sending espdu... [DisThreadedNetworkInterface main() self test] self test sending espdu...
[DisThreadedNetworkInterface main() self test] [sending 1] DisPduType 01 ENTITY_STATE self test, size 144 bytes)
[DisThreadedNetworkInterface main() self test] [receipt 1] DisPduType 01 ENTITY_STATE self test, size 144 bytes) [DisThreadedNetworkInterface main() self test] [receipt 1] DisPduType 01 ENTITY_STATE self test, size 144 bytes)
[DisThreadedNetworkInterface main() self test] main() pduListener.incomingPdu() received newPdu DisPduType 01 ENTITY_STATE [DisThreadedNetworkInterface main() self test] main() pduListener.incomingPdu() received newPdu DisPduType 01 ENTITY_STATE
*** setKillSentinelAndInterrupts() killed=true sendingThread.isInterrupted()=false receiveThread.isInterrupted()=true [DisThreadedNetworkInterface main() self test] [sending 1] DisPduType 01 ENTITY_STATE self test, size 144 bytes)
*** setKillSentinelAndInterrupts() killed=true sendingThread.isInterrupted()=true receiveThread.isInterrupted()=true
[DisThreadedNetworkInterface main() self test] close(): pdus2send.size()=0 baos.size()=0 dos.size()=144 [DisThreadedNetworkInterface main() self test] close(): pdus2send.size()=0 baos.size()=0 dos.size()=144
[DisThreadedNetworkInterface main() self test] datagramSocket.leaveGroup address=239.1.2.3 port=3000 isClosed()=true close() complete. [DisThreadedNetworkInterface main() self test] datagramSocket.leaveGroup address=239.1.2.3 port=3000 isClosed()=true close() complete.
*** killThread() status: sendingThread.isAlive()=false sendingThread.isInterrupted()=true *** killThread() status: sendingThread.isAlive()=false sendingThread.isInterrupted()=true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment