comparison org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs/WorkerPool.d @ 67:c73c01191fea

Fix compile error with dmd 1.042, duplicate attribute. It does no more like the combination of protected and package.
author Frank Benoit <benoit@tionex.de>
date Wed, 08 Apr 2009 21:43:05 +0200
parents 52184e4b815c
children
comparison
equal deleted inserted replaced
66:64ad955928ca 67:c73c01191fea
79 /** 79 /**
80 * The living set of workers in this pool. 80 * The living set of workers in this pool.
81 */ 81 */
82 private Worker[] threads; 82 private Worker[] threads;
83 83
84 protected package this(JobManager manager) { 84 /*protected package*/ this(JobManager manager) {
85 threads = new Worker[10]; 85 threads = new Worker[10];
86 this.manager = manager; 86 this.manager = manager;
87 mutex = new Mutex; 87 mutex = new Mutex;
88 condition = new Condition(mutex); 88 condition = new Condition(mutex);
89 // this.defaultContextLoader = Thread.currentThread().getContextClassLoader(); 89 // this.defaultContextLoader = Thread.currentThread().getContextClassLoader();
162 162
163 /** 163 /**
164 * Notification that a job has been added to the queue. Wake a worker, 164 * Notification that a job has been added to the queue. Wake a worker,
165 * creating a new worker if necessary. The provided job may be null. 165 * creating a new worker if necessary. The provided job may be null.
166 */ 166 */
167 protected package void jobQueued() { 167 /*protected package*/ void jobQueued() {
168 synchronized(mutex){ 168 synchronized(mutex){
169 //if there is a sleeping thread, wake it up 169 //if there is a sleeping thread, wake it up
170 if (sleepingThreads > 0) { 170 if (sleepingThreads > 0) {
171 condition.notify(); 171 condition.notify();
172 return; 172 return;