MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / get_or_create_frame_processor

Method get_or_create_frame_processor

src/dpp/dave/decryptor.cpp:203–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203std::unique_ptr<inbound_frame_processor> decryptor::get_or_create_frame_processor()
204{
205 std::lock_guard<std::mutex> lock(frame_processors_mutex);
206 if (frame_processors.empty()) {
207 return std::make_unique<inbound_frame_processor>(creator);
208 }
209 auto frame_processor = std::move(frame_processors.back());
210 frame_processors.pop_back();
211 return frame_processor;
212}
213
214void decryptor::return_frame_processor(std::unique_ptr<inbound_frame_processor> frame_processor)
215{

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected