MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / remove_decode_task

Method remove_decode_task

DSView/pv/sigsession.cpp:1874–1891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1872 }
1873
1874 void SigSession::remove_decode_task(view::DecodeTrace *trace)
1875 {
1876 std::lock_guard<std::mutex> lock(_decode_task_mutex);
1877
1878 for (auto it = _decode_tasks.begin(); it != _decode_tasks.end(); it++)
1879 {
1880 if ((*it) == trace)
1881 {
1882 (*it)->decoder()->stop_decode_work();
1883 _decode_tasks.erase(it);
1884 dsv_info("remove a waiting decode task");
1885 return;
1886 }
1887 }
1888
1889 // the task maybe is running
1890 trace->decoder()->stop_decode_work();
1891 }
1892
1893 void SigSession::clear_all_decoder(bool bUpdateView)
1894 {

Callers

nothing calls this directly

Calls 3

stop_decode_workMethod · 0.80
endMethod · 0.45
decoderMethod · 0.45

Tested by

no test coverage detected