Hi Marvin,
thanks for your feedback.
Using threads, like IO::AIO/AnyEvent::AIO does, would be my prefered way.
Is the searcher thread safe?
Is there any documentation about the C interface of Lucy?
Thanks & Regards
Gerald
Am 19.10.2015 um 21:54 schrieb Marvin Humphrey:
On Sat, Oct 17, 2015 at 11:11 AM, Gerald Richter <[email protected]> wrote:
Hi,
as far as I see all calls to Lucy are synchronous.
I there are way to use it together with AnyEvent and/or Coro without
blocking the whole system for the time of the Lucy calls?
Hi Gerald,
The only way I think it could work would be to launch a concurrent
independent process/thread on which Lucy does work. A call to interact
with the Lucy thread would then fire off work to be done on the
separate thread and register a callback signaling the main thread when
the work is done. That's effectively what we do in
LucyX::Remote::ClusterSearcher, though that's using a select loop.
Marvin Humphrey
!DSPAM:416,56254a9f23791092315305!