From 9e1a8a38ee2542375c76601e0d44c8a7b667e1bd Mon Sep 17 00:00:00 2001 From: benfry Date: Wed, 11 Jan 2006 05:45:28 +0000 Subject: [PATCH] more rolling back of thread work --- core/PApplet.java | 4 ++-- core/todo.txt | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/PApplet.java b/core/PApplet.java index cabfdbfe1..743d4b1a2 100644 --- a/core/PApplet.java +++ b/core/PApplet.java @@ -1076,7 +1076,7 @@ public class PApplet extends Applet } - synchronized public void run() { + /*synchronized*/ public void run() { try { /* // first time around, call the applet's setup method @@ -1846,7 +1846,7 @@ public class PApplet extends Applet if (CRUSTY_THREADS) { Thread.sleep(napTime); } else { - thread.wait(napTime); + wait(napTime); } } catch (InterruptedException e) { } } diff --git a/core/todo.txt b/core/todo.txt index 69c67a683..97d6807c2 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -2,6 +2,7 @@ X user.dir wasn't getting set properly X when graphics can be resized, resize rather than creating new context +X temporarily rolling back major thread changes X major threading change to use wait()/notifyAll() instead of interrupt/sleep _ noLoop() at end of setup is prolly b/c of interruptedex _ need to not call Thread.interrupt() @@ -12,6 +13,7 @@ X checked, not fixed _ noLoop() broken on opengl _ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1115330568;start=0 _ http://dev.processing.org/bugs/show_bug.cgi?id=164 +_ making 'run' synchronized caused a freeze on start w/ opengl _ need to move off anim off the main event thread _ move away from using display()