| Modifier and Type | Field and Description |
|---|---|
| private volatile Throwable | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | attach()
Implements com. Attaches this thread to the thread pool. |
| public Object | attach(ThreadId id)
Implements com. As above, but hands in an already existing instance of the threadid of the current thread. |
| private static native void | |
| private static native long | |
| public void | destroy()
Implements com. Destroys the thread pool and tries to join all created threads immediately. |
| private static native void | |
| public void | detach()
Implements com. Detaches this thread from the thread pool. |
| public void | detach(Object handle, ThreadId id)
Implements com. As above, but hands in an already existing instance of the threadid of the current thread and a handle returned by attach. |
| private static native void | |
| public void | dispose(Throwable throwable)
Implements com. Disposes this thread pool, thus releasing all threads by throwing a
|
| private static native void | |
| public Object | enter()
Implements com. Lets this thread enter the thread pool. |
| public Object | enter(Object handle, ThreadId id)
Implements com. As above but hands in an already existing instance of the threadid of the current thread and a handle returned by attach. |
| private static native Job | |
| public ThreadId | getThreadId()
Implements com. Retrieves the global threadId for the current thread. |
| public void | putJob(Job job)
Implements com. Queues a job into the jobQueue of the thread belonging to the jobs threadId. |
| private static native void | |
| private static native byte[] |
| dispose | back to summary |
|---|---|
| private volatile Throwable dispose | |
| pool | back to summary |
|---|---|
| private final long pool | |
| NativeThreadPool | back to summary |
|---|---|
| public NativeThreadPool() | |
| attach | back to summary |
|---|---|
| public void attach() Implements com. Doc from com. Attaches this thread to the thread pool. | |
| attach | back to summary |
|---|---|
| public Object attach(ThreadId id) Implements com. Doc from com. As above, but hands in an already existing instance of the threadid of the current thread. The function exists for performance. | |
| attach | back to summary |
|---|---|
| private static native void attach(long pool) | |
| create | back to summary |
|---|---|
| private static native long create() | |
| destroy | back to summary |
|---|---|
| public void destroy() Implements com. Doc from com. Destroys the thread pool and tries to join all created threads immediately. | |
| destroy | back to summary |
|---|---|
| private static native void destroy(long pool) | |
| detach | back to summary |
|---|---|
| public void detach() Implements com. Doc from com. Detaches this thread from the thread pool. | |
| detach | back to summary |
|---|---|
| public void detach(Object handle, ThreadId id) Implements com. Doc from com. As above, but hands in an already existing instance of the threadid of the current thread and a handle returned by attach. The function exists for performance. | |
| detach | back to summary |
|---|---|
| private static native void detach(long pool) | |
| dispose | back to summary |
|---|---|
| public void dispose(Throwable throwable) Implements com. Doc from com. Disposes this thread pool, thus releasing all threads by throwing a
| |
| dispose | back to summary |
|---|---|
| private static native void dispose(long pool) | |
| enter | back to summary |
|---|---|
| public Object enter() throws Throwable Implements com. Doc from com. Lets this thread enter the thread pool. This thread then executes all jobs put via | |
| enter | back to summary |
|---|---|
| public Object enter(Object handle, ThreadId id) throws Throwable Implements com. Doc from com. As above but hands in an already existing instance of the threadid of the current thread and a handle returned by attach. This thread then executes all jobs put via | |
| enter | back to summary |
|---|---|
| private static native Job enter(long pool) | |
| getThreadId | back to summary |
|---|---|
| public ThreadId getThreadId() Implements com. Doc from com. Retrieves the global threadId for the current thread. | |
| putJob | back to summary |
|---|---|
| public void putJob(Job job) Implements com. Doc from com. Queues a job into the jobQueue of the thread belonging to the jobs threadId. | |
| putJob | back to summary |
|---|---|
| private static native void putJob(long pool, byte[] threadId, Job job, boolean request, boolean oneWay) | |
| threadId | back to summary |
|---|---|
| private static native byte[] threadId() | |