| 137 | } |
| 138 | |
| 139 | std::vector<SharedContext> ContextManager::getAllContexts() const { |
| 140 | std::lock_guard<std::mutex> lock(_mutex); |
| 141 | |
| 142 | std::vector<SharedContext> out; |
| 143 | |
| 144 | for (const auto& it : _contextById) { |
| 145 | out.push_back(it.second); |
| 146 | } |
| 147 | |
| 148 | return out; |
| 149 | } |
| 150 | |
| 151 | size_t ContextManager::getContextsSize() const { |
| 152 | std::lock_guard<std::mutex> lock(_mutex); |
no outgoing calls
no test coverage detected