123124125126127128129130131132133
wait(); } catch (InterruptedException ex) { } } DispatchRequest result = null; if (!destroy_) { result = (DispatchRequest) requests_.firstElement(); requests_.removeElementAt(0); } return result;
37383940414243444546474849505152
threadPool_ = threadPool; } public void run() { while (true) { DispatchRequest req = threadPool_.get(); // // ThreadPool has terminated // if (req == null) return; req.invoke(); } }
122123124125126127128129130131132
36373839404142434445464748495051