| 88 | |
| 89 | |
| 90 | static void ExecuteActionLocal(void* ctxt) |
| 91 | { |
| 92 | MainThreadActionContext* action = (MainThreadActionContext*)ctxt; |
| 93 | try |
| 94 | { |
| 95 | action->action(); |
| 96 | } |
| 97 | catch (...) |
| 98 | { |
| 99 | action->exception = current_exception(); |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | |
| 104 | void BinaryNinja::ExecuteOnMainThreadAndWait(const function<void()>& action) |