wait until filled

http://www.nm.ifi.lmu.de/pub/Fopras/bran99/HTML-Version/node125.html

// Wait for request-input
java.lang.Object a = new java.lang.Object();
synchronized (a) {while(in.available() <= 0) a.wait(10);}

Comments

Popular posts from this blog

How to get started with Vue in under a minute?

aigiri nandini - Brodha V you rock