瀏覽代碼

Fix Node compile error on operator overload

Yunjia Wang 6 年之前
父節點
當前提交
2fbd77aee4
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 1 0
      src/core/lib/iomgr/executor/mpmcqueue.h
  2. 0 2
      test/core/iomgr/mpmcqueue_test.cc

+ 1 - 0
src/core/lib/iomgr/executor/mpmcqueue.h

@@ -92,6 +92,7 @@ class MPMCQueue : public MPMCQueueInterface {
       next = nullptr;
       insert_time = gpr_now(GPR_CLOCK_PRECISE);
     }
+    GRPC_ABSTRACT_BASE_CLASS
   };
 
   struct Stats {             // Stats of queue

+ 0 - 2
test/core/iomgr/mpmcqueue_test.cc

@@ -141,8 +141,6 @@ class WorkThread {
   void Start() { thd_.Start(); }
   void Join() { thd_.Join(); }
 
-  GRPC_ABSTRACT_BASE_CLASS
-
  private:
   void Run() {
     items_ = new WorkItem*[num_items_];