| 78 | } |
| 79 | |
| 80 | bool MountPointManager::destroy(const wchar_t *mountpoint) |
| 81 | { |
| 82 | wstring mpstr; |
| 83 | if (!find(mountpoint, mpstr)) { |
| 84 | return false; |
| 85 | } |
| 86 | bool result = true; |
| 87 | auto it = m_tdatas.find(mpstr); |
| 88 | if (it != m_tdatas.end()) { |
| 89 | delete it->second; |
| 90 | m_tdatas.erase(it); |
| 91 | } else { |
| 92 | result = false; |
| 93 | } |
| 94 | return result; |
| 95 | } |
| 96 | |
| 97 | BOOL MountPointManager::wait_and_destroy(const WCHAR* mountpoint) |
| 98 | { |
no test coverage detected