diff --git a/src/core/lib/iomgr/executor/mpmcqueue.h b/src/core/lib/iomgr/executor/mpmcqueue.h index c710600fddf..0fdd1d2d5a0 100644 --- a/src/core/lib/iomgr/executor/mpmcqueue.h +++ b/src/core/lib/iomgr/executor/mpmcqueue.h @@ -48,6 +48,8 @@ class MPMCQueueInterface { // Return number of elements in the queue currently virtual int count() const GRPC_ABSTRACT; + + GRPC_ABSTRACT_BASE_CLASS }; class MPMCQueue : public MPMCQueueInterface { diff --git a/test/core/iomgr/mpmcqueue_test.cc b/test/core/iomgr/mpmcqueue_test.cc index 9fa09153708..10a934ed149 100644 --- a/test/core/iomgr/mpmcqueue_test.cc +++ b/test/core/iomgr/mpmcqueue_test.cc @@ -141,6 +141,8 @@ class WorkThread { void Start() { thd_.Start(); } void Join() { thd_.Join(); } + GRPC_ABSTRACT_BASE_CLASS + private: void Run() { items_ = new WorkItem*[num_items_];