Java Code Examples for com.sun.corba.se.spi.orbutil.threadpool.WorkQueue#workItemsInQueue()
The following examples show how to use
com.sun.corba.se.spi.orbutil.threadpool.WorkQueue#workItemsInQueue() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ThreadPoolImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * To be called from the workqueue when work is added to the * workQueue. This method would create new threads if required * or notify waiting threads on the queue for available work */ void notifyForAvailableWork(WorkQueue aWorkQueue) { synchronized (aWorkQueue) { if (availableWorkerThreads < aWorkQueue.workItemsInQueue()) { createWorkerThread(); } else { aWorkQueue.notify(); } } }
Example 2
Source File: ThreadPoolImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * To be called from the workqueue when work is added to the * workQueue. This method would create new threads if required * or notify waiting threads on the queue for available work */ void notifyForAvailableWork(WorkQueue aWorkQueue) { synchronized (aWorkQueue) { if (availableWorkerThreads < aWorkQueue.workItemsInQueue()) { createWorkerThread(); } else { aWorkQueue.notify(); } } }
Example 3
Source File: ThreadPoolImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * To be called from the workqueue when work is added to the * workQueue. This method would create new threads if required * or notify waiting threads on the queue for available work */ void notifyForAvailableWork(WorkQueue aWorkQueue) { synchronized (aWorkQueue) { if (availableWorkerThreads < aWorkQueue.workItemsInQueue()) { createWorkerThread(); } else { aWorkQueue.notify(); } } }
Example 4
Source File: ThreadPoolImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * To be called from the workqueue when work is added to the * workQueue. This method would create new threads if required * or notify waiting threads on the queue for available work */ void notifyForAvailableWork(WorkQueue aWorkQueue) { synchronized (aWorkQueue) { if (availableWorkerThreads < aWorkQueue.workItemsInQueue()) { createWorkerThread(); } else { aWorkQueue.notify(); } } }
Example 5
Source File: ThreadPoolImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * To be called from the workqueue when work is added to the * workQueue. This method would create new threads if required * or notify waiting threads on the queue for available work */ void notifyForAvailableWork(WorkQueue aWorkQueue) { synchronized (aWorkQueue) { if (availableWorkerThreads < aWorkQueue.workItemsInQueue()) { createWorkerThread(); } else { aWorkQueue.notify(); } } }
Example 6
Source File: ThreadPoolImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * To be called from the workqueue when work is added to the * workQueue. This method would create new threads if required * or notify waiting threads on the queue for available work */ void notifyForAvailableWork(WorkQueue aWorkQueue) { synchronized (aWorkQueue) { if (availableWorkerThreads < aWorkQueue.workItemsInQueue()) { createWorkerThread(); } else { aWorkQueue.notify(); } } }
Example 7
Source File: ThreadPoolImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * To be called from the workqueue when work is added to the * workQueue. This method would create new threads if required * or notify waiting threads on the queue for available work */ void notifyForAvailableWork(WorkQueue aWorkQueue) { synchronized (aWorkQueue) { if (availableWorkerThreads < aWorkQueue.workItemsInQueue()) { createWorkerThread(); } else { aWorkQueue.notify(); } } }
Example 8
Source File: ThreadPoolImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * To be called from the workqueue when work is added to the * workQueue. This method would create new threads if required * or notify waiting threads on the queue for available work */ void notifyForAvailableWork(WorkQueue aWorkQueue) { synchronized (aWorkQueue) { if (availableWorkerThreads < aWorkQueue.workItemsInQueue()) { createWorkerThread(); } else { aWorkQueue.notify(); } } }
Example 9
Source File: ThreadPoolImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * To be called from the workqueue when work is added to the * workQueue. This method would create new threads if required * or notify waiting threads on the queue for available work */ void notifyForAvailableWork(WorkQueue aWorkQueue) { synchronized (aWorkQueue) { if (availableWorkerThreads < aWorkQueue.workItemsInQueue()) { createWorkerThread(); } else { aWorkQueue.notify(); } } }
Example 10
Source File: ThreadPoolImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * To be called from the workqueue when work is added to the * workQueue. This method would create new threads if required * or notify waiting threads on the queue for available work */ void notifyForAvailableWork(WorkQueue aWorkQueue) { synchronized (aWorkQueue) { if (availableWorkerThreads < aWorkQueue.workItemsInQueue()) { createWorkerThread(); } else { aWorkQueue.notify(); } } }