summaryrefslogtreecommitdiff
path: root/jurt
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-10-09 09:10:15 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-10-09 09:10:15 +0000
commit94958142a778b58cc5c09d1ca3ec5b92e50ed754 (patch)
tree1ee3bafeb3bf2a8e3479b27ad3601470ff1c30d0 /jurt
parent9970560cc2f57714c78e847d2cf3c65255b661d4 (diff)
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.
Diffstat (limited to 'jurt')
-rw-r--r--jurt/com/sun/star/lib/uno/environments/remote/JavaThreadPool.java16
1 files 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.
* <p>
- * @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 );
}