| 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 | { |
nothing calls this directly
no test coverage detected