MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / markReady

Method markReady

Libraries/HttpClient/HttpClientScheduler.cpp:76–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76SC::Result SC::HttpClientOperationScheduler::markReady(HttpClientOperation& operation)
77{
78 SC_TRY_MSG(initialized, "HttpClientOperationScheduler: not initialized");
79
80 const size_t index = findOperationIndex(operation);
81 SC_TRY_MSG(index != InvalidOperationIndex, "HttpClientOperationScheduler: operation not registered");
82
83 readyMutex.lock();
84 schedulerMemory.readyOperations[index] = 1;
85 readyCV.broadcast();
86 readyMutex.unlock();
87 return Result(true);
88}
89
90void SC::HttpClientOperationScheduler::notifyHttpClientOperation(HttpClientOperation& operation)
91{

Callers

nothing calls this directly

Calls 4

ResultClass · 0.50
lockMethod · 0.45
broadcastMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected