夏C++QT5跨平台界面编程原理和实战大全视频
static class Producer extends Thread {
private final Queue<Integer> queue;
private final Lock lock;
private final Condition queueEmpty;
private final Condition queueFull;
public Producer(Queue<Integer> queue, Lock lock, Condition queueEmpty, Condition queueFull) {
this.queue = queue;
this.lock = lock;
this.queueEmpty = queueEmpty;
this.queueFull = queueFull;
}
@Override