| 314 | |
| 315 | |
| 316 | void BinaryNinja::WorkerEnqueue(const function<void()>& action, const std::string& name) |
| 317 | { |
| 318 | WorkerThreadActionContext* ctxt = new WorkerThreadActionContext; |
| 319 | ctxt->action = action; |
| 320 | BNWorkerEnqueueNamed(ctxt, WorkerActionCallback, name.c_str()); |
| 321 | } |
| 322 | |
| 323 | |
| 324 | void BinaryNinja::WorkerEnqueue(RefCountObject* owner, const function<void()>& action, const std::string& name) |