Add base classes of EventManagerInterface.

pull/20325/head
Guantao Liu 5 years ago
parent c4ed813906
commit 86bdc2d440
  1. 9
      BUILD
  2. 18
      src/core/lib/iomgr/eventmanager_interface.h

@ -2519,3 +2519,12 @@ filegroup(
],
visibility = ["//visibility:public"],
)
# Base classes of EventManagerInterface
grpc_cc_library(
name = "eventmanager_interface",
hdrs = [
"src/core/lib/iomgr/poller/eventmanager_interface.h",
],
)

@ -0,0 +1,18 @@
#ifndef GRPC_CORE_LIB_IOMGR_POLLER_EVENTMANAGER_INTERFACE_H_
#define GRPC_CORE_LIB_IOMGR_POLLER_EVENTMANAGER_INTERFACE_H_
namespace grpc {
namespace experimental {
class BaseEventManagerInterface {
public:
virtual ~BaseEventManagerInterface() {}
};
class EpollEventManagerInterface : public BaseEventManagerInterface {};
} // namespace experimental
} // namespace grpc
#endif // GRPC_CORE_LIB_IOMGR_POLLER_EVENTMANAGER_INTERFACE_H_
Loading…
Cancel
Save