Mercurial > hg > Members > nobuyasu > tightVNCProxy
view src/myVncProxy/RequestScreenThread.java @ 191:b2f0cd0cff6c default tip
Added tag Version-1.0 for changeset 79046b4e5990
author | Yu Taninari <you@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 29 Nov 2011 15:52:44 +0900 |
parents | 13458f88d8c9 |
children |
line wrap: on
line source
package myVncProxy; public class RequestScreenThread implements Runnable { MyRfbProto rfb; RequestScreenThread(MyRfbProto _rfb) { rfb = _rfb; } public void run() { while (true) { try { waitThread(); Thread.sleep(3000); rfb.writeFramebufferUpdateRequest(0, 0, rfb.framebufferWidth, rfb.framebufferHeight, false); } catch (Exception e) { e.printStackTrace(); break; } } } public synchronized void waitThread() { try{ wait(); }catch(InterruptedException e) { e.printStackTrace(); } } public synchronized void reStart() { notify(); } }