1 package mhr.appcore.tasks;
3 import java.util.LinkedList;
5 import mhr.appcore.AppCore;
6 import mhr.appcore.commands.AppCommand;
7 import mhr.appcore.exceptions.AppNonFatalException;
8 import mhr.appcore.interfaces.PDExceptionFeedback;
23 public LinkedList<AppCommand>
commands =
new LinkedList<AppCommand>();
33 protected Thread.UncaughtExceptionHandler
handler = null;
47 throw new NullPointerException(
"app should not be null");
97 public synchronized void start() {
101 thread =
new Thread(
this);
105 synchronized (
lock) {
114 public synchronized void stop() {
118 synchronized (
lock) {
124 }
catch (InterruptedException exc) {
134 synchronized (
lock) {
148 synchronized (
lock) {
160 synchronized (
lock) {
171 }
catch (InterruptedException e) {
181 synchronized (
lock) {