Back to project page SIC.
The source code is released under:
MIT License
If you think the Android project SIC 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 com.sun.imageloader.core; /* w ww . j av a 2 s.co m*/ import java.util.concurrent.atomic.AtomicBoolean; public class FlingLock { private final AtomicBoolean paused = new AtomicBoolean(false); private final Object pauseLock = new Object(); public void pause() { paused.set(true); } public void resume() { paused.set(false); synchronized (pauseLock) { pauseLock.notifyAll(); } } public Object getPauseLock() { return pauseLock; } public AtomicBoolean getPause() { return paused; } }