diff options
author | Jörg Budischewski <jbu@openoffice.org> | 2001-11-02 09:48:29 +0000 |
---|---|---|
committer | Jörg Budischewski <jbu@openoffice.org> | 2001-11-02 09:48:29 +0000 |
commit | ff455b4a74afc5a38fd3f2d642ae91d426e82d7b (patch) | |
tree | 6d510d84749d07359ad8857ed7f4ae5f1cedd60a /jurt | |
parent | 358388a087b9c688f57131a6a0b814ce43012625 (diff) |
#94215# asynchronous queue is not made public anymore
Diffstat (limited to 'jurt')
-rw-r--r-- | jurt/com/sun/star/lib/uno/environments/remote/JobQueue.java | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/jurt/com/sun/star/lib/uno/environments/remote/JobQueue.java b/jurt/com/sun/star/lib/uno/environments/remote/JobQueue.java index 55af366bb608..e7e47ac9abc9 100644 --- a/jurt/com/sun/star/lib/uno/environments/remote/JobQueue.java +++ b/jurt/com/sun/star/lib/uno/environments/remote/JobQueue.java @@ -2,9 +2,9 @@ * * $RCSfile: JobQueue.java,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: kr $ $Date: 2001-05-17 12:55:05 $ + * last change: $Author: jbu $ $Date: 2001-11-02 10:48:29 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -83,7 +83,7 @@ import com.sun.star.uno.UnoRuntime; * (put by <code>putjob</code>) into the async queue, which is only * known by the sync queue. * <p> - * @version $Revision: 1.14 $ $ $Date: 2001-05-17 12:55:05 $ + * @version $Revision: 1.15 $ $ $Date: 2001-11-02 10:48:29 $ * @author Kay Ramme * @see com.sun.star.lib.uno.environments.remote.ThreadPool * @see com.sun.star.lib.uno.environments.remote.Job @@ -239,7 +239,8 @@ public class JobQueue { } synchronized void acquire() { - if(_ref_count <= 0) + // add only synchronous queues . + if(_ref_count <= 0 && _sync_jobQueue == null ) _javaThreadPoolFactory.addJobQueue(this); ++ _ref_count; @@ -249,7 +250,9 @@ public class JobQueue { -- _ref_count; if(_ref_count <= 0) { - _javaThreadPoolFactory.removeJobQueue(this); + // only synchronous queues needs to be removed . + if( _sync_jobQueue == null ) + _javaThreadPoolFactory.removeJobQueue(this); if(_sync_jobQueue != null) { |