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

Method close

Libraries/HttpClient/HttpClientScheduler.cpp:32–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32SC::Result SC::HttpClientOperationScheduler::close()
33{
34 if (not initialized)
35 {
36 return Result(true);
37 }
38
39 for (size_t idx = 0; idx < schedulerMemory.operations.sizeInElements(); ++idx)
40 {
41 if (schedulerMemory.operations[idx] != nullptr)
42 {
43 schedulerMemory.operations[idx]->setNotifier(nullptr);
44 }
45 schedulerMemory.readyOperations[idx] = 0;
46 }
47 initialized = false;
48 readyCV.broadcast();
49 return Result(true);
50}
51
52SC::size_t SC::HttpClientOperationScheduler::findOperationIndex(HttpClientOperation& operation) const
53{

Callers

nothing calls this directly

Calls 2

ResultClass · 0.50
broadcastMethod · 0.45

Tested by

no test coverage detected