| 46 | } |
| 47 | |
| 48 | void DrapeApi::Clear() |
| 49 | { |
| 50 | DrapeEngineLockGuard lock(m_engine); |
| 51 | if (!lock) |
| 52 | return; |
| 53 | |
| 54 | auto & threadCommutator = lock.Get()->m_threadCommutator; |
| 55 | m_lines.clear(); |
| 56 | threadCommutator->PostMessage(ThreadsCommutator::ResourceUploadThread, |
| 57 | make_unique_dp<DrapeApiRemoveMessage>("", true /* remove all */), |
| 58 | MessagePriority::Normal); |
| 59 | } |
| 60 | |
| 61 | void DrapeApi::Invalidate() |
| 62 | { |
no test coverage detected