public interface IThreadPool
ThreadPoolManager| Modifier and Type | Method and Description |
|---|---|
void |
attach()
Attaches this thread to the thread pool.
|
Object |
attach(ThreadId id)
As above, but hands in an already existing instance of the threadid of
the current thread.
|
void |
destroy()
Destroys the thread pool and tries to join all created threads immediately.
|
void |
detach()
Detaches this thread from the thread pool.
|
void |
detach(Object handle,
ThreadId id)
As above, but hands in an already existing instance of the threadid of
the current thread and a handle returned by attach.
|
void |
dispose(Throwable throwable)
Disposes this thread pool, thus releasing all threads by throwing a
DisposedException with the given Throwable cause. |
Object |
enter()
Lets this thread enter the thread pool.
|
Object |
enter(Object handle,
ThreadId id)
As above but hands in an already existing instance of the threadid of
the current thread and a handle returned by attach.
|
ThreadId |
getThreadId()
Retrieves the global threadId for the current thread.
|
void |
putJob(Job job)
Queues a job into the jobQueue of the thread belonging to the jobs
threadId.
|
ThreadId getThreadId()
void attach()
enter()Object attach(ThreadId id)
The function exists for performance.
attach()void detach()
enter()void detach(Object handle, ThreadId id)
The function exists for performance.
Object enter() throws Throwable
This thread then executes all jobs put via putJob until
a reply job arrives.
ThrowableputJob(com.sun.star.lib.uno.environments.remote.Job)Object enter(Object handle, ThreadId id) throws Throwable
This thread then executes all jobs put via putJob until
a reply job arrives.
ThrowableputJob(com.sun.star.lib.uno.environments.remote.Job)void putJob(Job job)
job - the jobvoid dispose(Throwable throwable)
DisposedException with the given Throwable cause.throwable - the causevoid destroy()