public final class ThreadPoolManager
extends java.lang.Object
The thread pool factory is a process-wide resource. It is important that all UNO environments within a process share the same thread pool mechanisms: if a synchronous UNO call is bridged out from one local UNO environment over one remote bridge, and recursively calls back into another local UNO environment over another remote bridge, the code in the second environment should be executed in the thread that did the original call from the first environment.
There are both a Java and a native thread pool factory. A pure Java
process will always use the Java thread pool factory. A mixed process uses
the system property org.openoffice.native
(to be set by the
native code that starts the JVM) to determine which implementation
to use.
Modifier and Type | Method and Description |
---|---|
static IThreadPool |
create()
Creates a thread pool instance.
|
static boolean |
useNative()
Leads to using the native thread pool factory, unless a Java thread pool
has already been created.
|
public static IThreadPool create()
null
public static boolean useNative()
false
if a Java thread pool has already been created