MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / TestRPCServer

Method TestRPCServer

net/test/zerocopy-server.cpp:113–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111class TestRPCServer : public Object {
112public:
113 explicit TestRPCServer(IOAlloc alloc) {
114 m_skeleton = rpc::new_skeleton();
115 m_skeleton->set_allocator(alloc);
116 m_skeleton->register_service<TestReadProto>(this);
117 m_skeleton->register_service<TestWriteProto>(this);
118 m_qps = 0;
119 m_statis_thread = photon::thread_create11(&TestRPCServer::loop_show_statis, this);
120 photon::thread_enable_join(m_statis_thread);
121 }
122
123 ~TestRPCServer() override {
124 photon::thread_interrupt(m_statis_thread);

Callers

nothing calls this directly

Calls 4

thread_enable_joinFunction · 0.85
new_skeletonFunction · 0.50
thread_create11Function · 0.50
set_allocatorMethod · 0.45

Tested by

no test coverage detected