lucy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerald Richter <>
Subject Re: [lucy-user] Lucy and Coro/AnyEvent
Date Tue, 20 Oct 2015 07:43:56 GMT
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


Am 19.10.2015 um 21:54 schrieb Marvin Humphrey:
> On Sat, Oct 17, 2015 at 11:11 AM, Gerald Richter <> 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!

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message