From 94958142a778b58cc5c09d1ca3ec5b92e50ed754 Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Thu, 9 Oct 2003 09:10:15 +0000 Subject: [PATCH] INTEGRATION: CWS sb8 (1.9.62); FILE MERGED 2003/10/06 08:28:11 sb 1.9.62.1: #112127# Moved getThreadId from ThreadPoolFactory/Manager to ThreadPool itself. --- .../uno/environments/remote/JavaThreadPool.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/jurt/com/sun/star/lib/uno/environments/remote/JavaThreadPool.java b/jurt/com/sun/star/lib/uno/environments/remote/JavaThreadPool.java index a27057875e53..25e7c110eb50 100644 --- a/jurt/com/sun/star/lib/uno/environments/remote/JavaThreadPool.java +++ b/jurt/com/sun/star/lib/uno/environments/remote/JavaThreadPool.java @@ -2,9 +2,9 @@ * * $RCSfile: JavaThreadPool.java,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: jbu $ $Date: 2002-06-25 07:16:52 $ + * last change: $Author: vg $ $Date: 2003-10-09 10:10:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -71,7 +71,7 @@ import com.sun.star.uno.UnoRuntime; /** * This class implements a java thread pool. *

- * @version $Revision: 1.9 $ $ $Date: 2002-06-25 07:16:52 $ + * @version $Revision: 1.10 $ $ $Date: 2003-10-09 10:10:15 $ * @author Kay Ramme * @see com.sun.star.uno.UnoRuntime * @see com.sun.star.lib.uno.environments.remote.ThreadPool @@ -92,6 +92,10 @@ public class JavaThreadPool implements IThreadPool { _javaThreadPoolFactory = javaThreadPoolFactory; } + public ThreadId getThreadId() { + return JavaThreadPoolFactory.getThreadId(); + } + public Object attach( ThreadId threadId ) { if(DEBUG) System.err.println("##### " + getClass().getName() + ".attach - id:" + threadId); @@ -105,7 +109,7 @@ public class JavaThreadPool implements IThreadPool { } public void attach() { - attach( _javaThreadPoolFactory.getThreadId() ); + attach( getThreadId() ); } public void detach( Object handle, ThreadId id ) @@ -114,13 +118,13 @@ public class JavaThreadPool implements IThreadPool { } public void detach() { - ThreadId threadId = _javaThreadPoolFactory.getThreadId(); + ThreadId threadId = getThreadId(); detach(_javaThreadPoolFactory.getJobQueue(threadId), threadId ); } public Object enter( ) throws Throwable { - ThreadId threadId = _javaThreadPoolFactory.getThreadId(); + ThreadId threadId = getThreadId(); return enter( _javaThreadPoolFactory.getJobQueue( threadId ), threadId ); }