Mercurial > hg > trac > TreeVNC > TreeVNC
diff src/main/java/jp/ac/u_ryukyu/treevnc/server/RequestScreenThread.java @ 88:a719aa609e14
add name valuer threads.
author | oc |
---|---|
date | Thu, 01 May 2014 19:12:05 +0900 |
parents | 9d3478d11d3b |
children | 8f4c45c1b396 |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/server/RequestScreenThread.java Thu May 01 18:04:39 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/server/RequestScreenThread.java Thu May 01 19:12:05 2014 +0900 @@ -12,10 +12,22 @@ rfb = _rfb; } + + + /* (non-Javadoc) + * @see java.lang.Runnable#run() + * + * request full screen update every 3 second. + * restart send this immediately. + * nobody call this. + * + */ public void run() { while (true) { try { - waitThread(); + synchronized(this) { + wait(); + } Thread.sleep(3000); rfb.writeFramebufferUpdateRequest(0, 0, protocol.getFbWidth(), protocol.getFbHeight(), false); @@ -27,14 +39,10 @@ } } - public synchronized void waitThread() { - try{ - wait(); - }catch(InterruptedException e) { - e.printStackTrace(); - } - } + /** + * do nothing. + */ public synchronized void reStart() { notify(); }