| 116 | } |
| 117 | |
| 118 | weak_ptr<ProcessorHandle> Engine::Search(SearchParams params) |
| 119 | { |
| 120 | shared_ptr<ProcessorHandle> handle(new ProcessorHandle()); |
| 121 | PostMessage(Message::TYPE_TASK, [this, params = std::move(params), handle](Processor & processor) |
| 122 | { DoSearch(std::move(params), handle, processor); }); |
| 123 | return handle; |
| 124 | } |
| 125 | |
| 126 | void Engine::SetLocale(string const & locale) |
| 127 | { |