Back to project page LeBlue.
The source code is released under:
Apache License
If you think the Android project LeBlue listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package houtbecke.rs.le.mock; /*w ww. j a va 2 s. c o m*/ public class SimpleWaitNotify implements WaitNotify { public int waitCounter = 0; @Override public void simpleWait() { waitCounter++; } @Override public void simpleNotifyAll() { int currentWaitCounter = waitCounter; while (currentWaitCounter == waitCounter) { try { Thread.sleep(100); } catch (InterruptedException e) { e.printStackTrace(); } } } }