MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / take

Method take

common/script/scriptuibridge.cpp:53–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53std::optional<UiRequest> ScriptUiBridge::take(void)
54{
55 std::lock_guard<std::mutex> lock(mMutex);
56 if (!mReq || mResp || mTaken) {
57 return std::nullopt;
58 }
59 mTaken = true;
60 return mReq;
61}
62
63void ScriptUiBridge::respond(UiResponse resp)
64{

Callers 1

pumpScriptRequestsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected