瀏覽代碼

导入开发

lwhhszx 2 年之前
父節點
當前提交
4fa04e5425
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      PAS/src/main/java/cn/cslg/pas/service/upLoadPatent/ThreadSafeQueue.java

+ 2 - 0
PAS/src/main/java/cn/cslg/pas/service/upLoadPatent/ThreadSafeQueue.java

@@ -37,6 +37,7 @@ public class ThreadSafeQueue<T> {
             while (queue.size() == maxSize) {
                 notFull.await();
             }
+System.out.println("进入队列");
             queue.add(item);
             notEmpty.signalAll();
         } finally {
@@ -50,6 +51,7 @@ public class ThreadSafeQueue<T> {
             while (queue.isEmpty()) {
                 notEmpty.await();
             }
+            System.out.println("出队列");
             T item = queue.remove();
             notFull.signalAll();
             return item;