costin 2003/04/02 16:45:21 Modified: util/java/org/apache/tomcat/util/threads ThreadWithAttributes.java Log: Add a "threadData" attribute. This can simplify the init and allow the thread pool to run simple Runnable. Revision Changes Path 1.2 +11 -0 jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/threads/ThreadWithAttributes.java Index: ThreadWithAttributes.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/threads/ThreadWithAttributes.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- ThreadWithAttributes.java 11 Jan 2003 06:53:43 -0000 1.1 +++ ThreadWithAttributes.java 3 Apr 2003 00:45:21 -0000 1.2 @@ -14,16 +14,27 @@ * request 'GET /' "). */ public class ThreadWithAttributes extends Thread { + private Object control; public static int MAX_NOTES=16; private Object notes[]=new Object[MAX_NOTES]; private Hashtable attributes=new Hashtable(); private String currentStage; private Object param; + + private Object thData[]; public ThreadWithAttributes(Object control, Runnable r) { super(r); this.control=control; + } + + public final Object[] getThreadData(Object control ) { + return thData; + } + + public final void setThreadData(Object control, Object thData[] ) { + this.thData=thData; } /** Notes - for attributes that need fast access ( array )
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]