MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / removeHandle

Method removeHandle

framework/data_source/curl/CurlMulti.cpp:232–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230 return CURLM_OK;
231}
232CURLMcode CurlMulti::removeHandle(CURLConnection2 *curl_connection)
233{
234 std::lock_guard<std::mutex> lockGuard(mListMutex);
235 for (auto &item : mAddList) {
236 if (item == curl_connection) {
237 mAddList.remove(item);
238 break;
239 }
240 }
241 mRemoveList.push_back(curl_connection);
242 curl_multi_wakeup(multi_handle);
243 return CURLM_OK;
244}
245void CurlMulti::deleteHandle(CURLConnection2 *curl_connection)
246{
247 std::lock_guard<std::mutex> lockGuard(mListMutex);

Callers 1

removeFormMultiMethod · 0.80

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected