aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apg/PausableThread.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apg/PausableThread.java')
-rw-r--r--src/org/apg/PausableThread.java35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/org/apg/PausableThread.java b/src/org/apg/PausableThread.java
deleted file mode 100644
index 87258d36c..000000000
--- a/src/org/apg/PausableThread.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package org.apg;
-
-public class PausableThread extends Thread {
- private boolean mPaused = false;
-
- public PausableThread(Runnable runnable) {
- super(runnable);
- }
-
- public void pause() {
- synchronized (this) {
- mPaused = true;
- while (mPaused) {
- try {
- wait();
- } catch (InterruptedException e) {
- // ignore
- }
- }
- }
- }
-
- public void unpause() {
- synchronized (this) {
- mPaused = false;
- notify();
- }
- }
-
- public boolean isPaused() {
- synchronized (this) {
- return mPaused;
- }
- }
-}