| 59 | } |
| 60 | |
| 61 | void DrapeApi::Invalidate() |
| 62 | { |
| 63 | DrapeEngineLockGuard lock(m_engine); |
| 64 | if (!lock) |
| 65 | return; |
| 66 | |
| 67 | auto & threadCommutator = lock.Get()->m_threadCommutator; |
| 68 | threadCommutator->PostMessage(ThreadsCommutator::ResourceUploadThread, |
| 69 | make_unique_dp<DrapeApiRemoveMessage>("", true /* remove all */), |
| 70 | MessagePriority::Normal); |
| 71 | |
| 72 | threadCommutator->PostMessage(ThreadsCommutator::ResourceUploadThread, |
| 73 | make_unique_dp<DrapeApiAddLinesMessage>(m_lines), MessagePriority::Normal); |
| 74 | } |
| 75 | } // namespace df |
no test coverage detected