| 873 | |
| 874 | |
| 875 | void DebuggerController::DetachAndWait() |
| 876 | { |
| 877 | bool locked = false; |
| 878 | if (m_targetControlMutex.try_lock()) |
| 879 | locked = true; |
| 880 | |
| 881 | if (!m_state->IsConnected()) |
| 882 | return; |
| 883 | |
| 884 | // TODO: return whether the operation is successful |
| 885 | ExecuteAdapterAndWait(DebugAdapterDetach); |
| 886 | |
| 887 | // There is no need to notify a detached event at this point, since the detach event is already processed |
| 888 | // by all the callback |
| 889 | |
| 890 | if (locked) |
| 891 | m_targetControlMutex.unlock(); |
| 892 | } |
| 893 | |
| 894 | |
| 895 | void DebuggerController::Quit() |
nothing calls this directly
no test coverage detected