Mercurial > hg > Applications > TreeVNC
diff src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java @ 88:a719aa609e14
add name valuer threads.
author | oc |
---|---|
date | Thu, 01 May 2014 19:12:05 +0900 |
parents | 432dac0b9dae |
children | 1503a373ab73 |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java Thu May 01 18:04:39 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java Thu May 01 19:12:05 2014 +0900 @@ -89,7 +89,7 @@ } } }; - new Thread(timer).start(); + new Thread(timer, "timer-discard-multicastqueue").start(); /** * discard all incoming from clients */ @@ -127,7 +127,6 @@ writerRunning.set(1); try { requestThreadNotify(); - // rThread.checkDelay(); /** * initial connection of RFB protocol @@ -140,8 +139,8 @@ sendSecResult(os); readClientInit(is); sendInitData(os); - new Thread(reader).start(); // discard incoming packet here - // after. + // after this, we discard upward packet. + new Thread(reader, "discard-upward-comm").start(); // writeFramebufferUpdateRequest(0,0, framebufferWidth, // framebufferHeight, false ); for (;;) { @@ -187,11 +186,11 @@ } }; clients++; - new Thread(sender).start(); + new Thread(sender, "writer-to-lower-node").start(); } - public synchronized void requestThreadNotify() { + public void requestThreadNotify() { rThread.reStart(); }