From c2db456e16baa39088ede51ff406c9862a023f4c Mon Sep 17 00:00:00 2001 From: Yunjia Wang Date: Mon, 17 Jun 2019 15:03:23 -0700 Subject: [PATCH] Modify MPMCQueueInterface class defination for c++ compiler --- src/core/lib/iomgr/threadpool/mpmcqueue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/lib/iomgr/threadpool/mpmcqueue.h b/src/core/lib/iomgr/threadpool/mpmcqueue.h index 18d30e876ab..2aa5ec1cdaa 100644 --- a/src/core/lib/iomgr/threadpool/mpmcqueue.h +++ b/src/core/lib/iomgr/threadpool/mpmcqueue.h @@ -31,7 +31,6 @@ namespace grpc_core { // Abstract base class of a MPMC queue interface class MPMCQueueInterface { public: - MPMCQueueInterface() {} virtual ~MPMCQueueInterface() {} // Put elem into queue immediately at the end of queue. @@ -102,6 +101,7 @@ class MPMCQueue : public MPMCQueueInterface { Node* next; // Linking void* content; // Points to actual element gpr_timespec insert_time; // Time for stats + Node(void* c) : content(c) { next = nullptr; insert_time = gpr_now(GPR_CLOCK_PRECISE);