Kaydet (Commit) e84d5a7e authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

MWS_SRX644: migrate branch mws_srx644 -> HEAD

üst bcb75a10
......@@ -2,9 +2,9 @@
*
* $RCSfile: ExecutionContext.java,v $
*
* $Revision: 1.2 $
* $Revision: 1.3 $
*
* last change: $Author: jl $ $Date: 2002-09-24 13:31:32 $
* last change: $Author: hr $ $Date: 2003-03-26 17:28:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -161,6 +161,16 @@ public abstract class ExecutionContext extends Observable {
dispatchThread = new Thread( threadGroup, new Runnable() {
public void run() {
while( loop ) {
if( head != null) {
if (DEBUG) System.err.println("#### ExecutionContext dispatchThread " + dispatchThread.toString() + " -dispatching: " + head.id);
dispatch( head.id );
if (DEBUG) System.err.println("#### ExecutionContext dispatchThread " + dispatchThread.toString() + " get next head - current state is " +head.id );
synchronized( getSynObject() ) {
head = head.next;
getSynObject().notify();
}
}
synchronized( getSynObject() ) {
if (head == null) {
try {
......@@ -172,18 +182,12 @@ public abstract class ExecutionContext extends Observable {
}
}
}
if (DEBUG) System.err.println("#### ExecutionContext dispatchThread " + dispatchThread.toString() + " -dispatching: " + head.id);
dispatch( head.id );
if (DEBUG) System.err.println("#### ExecutionContext dispatchThread " + dispatchThread.toString() + " get next head - current state is " +head.id );
synchronized( getSynObject() ) {
head = head.next;
getSynObject().notify();
}
}
if(DEBUG) System.err.println("#### ExecutionContext - dispatchThread -terminating");
}
});
dispatchThread.setDaemon(true);
dispatchThread.start();
}
public void sendEvent(int id) {
......@@ -224,22 +228,16 @@ public abstract class ExecutionContext extends Observable {
synchronized( getSynObject() ) {
while( head != null )
getSynObject().wait( timeout ); // wait at most one second for each queued command
}
loop = false;
getSynObject().notifyAll();
}
dispatchThread.join(timeout);
}
catch(InterruptedException ee) {
if(DEBUG) System.err.println("#### ExecutionContext " + dispatchThread.toString() + " - dispose 1:" + ee);
}
loop = false;
getSynObject().notifyAll();
// dispatchThread.interrupt();
dispatchThread.join(timeout);
if(DEBUG) threadGroup.list();
// threadGroup.stop();
if ( !threadGroup.isDestroyed() )
threadGroup.destroy();
}
......@@ -355,8 +353,8 @@ public abstract class ExecutionContext extends Observable {
if (status == LOADED || status == DESTROYED) {
xdispose();
// baseResourceLoader.flush();
setStatus(DISPOSED);
showStatus("disposed");
setStatus(DISPOSED);
}
else
showStatus("notdestroyed");
......
..\%__SRC%\class\sandbox.jar %_DEST%\bin%_EXT%\sandbox.jar
..\%__SRC%\bin\sandbox_src.zip %COMMON_DEST%\bin%_EXT%\sandbox_src.zip
..\%__SRC%\lib\lib*static*.dylib %_DEST%\lib%_EXT%\lib*static*.dylib
..\%__SRC%\misc\*staticdatamembers.cxx %_DEST%\inc%_EXT%\*staticdatamembers.cxx
..\%__SRC%\misc\*staticdatamembers.h* %_DEST%\inc%_EXT%\*staticdatamembers.h*
......
......@@ -2,9 +2,9 @@
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.3 $
# $Revision: 1.4 $
#
# last change: $Author: jl $ $Date: 2002-10-25 06:55:27 $
# last change: $Author: hr $ $Date: 2003-03-26 17:28:14 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
......@@ -74,6 +74,14 @@ JARCLASSDIRS = com$/sun$/star$/lib$/sandbox
JARTARGET = sandbox.jar
JARCOMPRESS = TRUE
# Special work necessary for building java reference with javadoc.
# The source of puplic APIs must be delivered and used later in the
# odk module.
ZIP1TARGET=sandbox_src
ZIP1FLAGS=-u -r
ZIP1DIR=$(PRJ)
ZIP1LIST=com -x "*makefile.mk"
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment