MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / startProcessingMessages

Method startProcessingMessages

3rdparty/cppdap/src/session.cpp:83–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 }
82
83 void startProcessingMessages() override {
84 recvThread = std::thread([this] {
85 while (reader.isOpen()) {
86 if (auto payload = getPayload()) {
87 inbox.put(std::move(payload));
88 }
89 }
90 });
91
92 dispatchThread = std::thread([this] {
93 while (auto payload = inbox.take()) {
94 payload.value()();
95 }
96 });
97 }
98
99 bool send(const dap::TypeInfo* requestTypeInfo,
100 const dap::TypeInfo* responseTypeInfo,

Callers

nothing calls this directly

Calls 4

takeMethod · 0.80
isOpenMethod · 0.45
putMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected