[sheepdog] [discuss v2] Design of Libsheepdog

Joseph Glanville joseph at cloudscaling.com
Wed Jul 24 23:43:08 CEST 2013


On Wed, Jul 24, 2013 at 5:23 PM, Liu Yuan <namei.unix at gmail.com> wrote:
> On Wed, Jul 24, 2013 at 04:12:46PM +0900, MORITA Kazutaka wrote:
>> At Tue, 23 Jul 2013 17:20:10 +0800,
>> Kai Zhang wrote:
>> >
>> > On Jul 23, 2013, at 5:13 PM, MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp> wrote:
>> >
>> > > We already have a tiny event library (lib/event.c).  Your plan don't
>> > > use it at all, or supports it as an option?
>> >
>> > We can support it as an option.
>> > However, I think user would be more familiar with libev, libevent and libuv.
>>
>> The user needs to be aware of the implementation of the underlying
>> event library?  I'm not sure it's a good design for now, but want to
>> see the implementation for further discussion.
>>
>
> I think we can build higher sync APIs that make use of async APIs underneath
> with a selected event library. Advanced users can make use of async APIs with
> their own selected event library.

Yes this is the prefered approach, this way if you embed the library
in an application you can integrate it into the applications event
loop.

>
> Thanks
> Yuan
> --
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog



More information about the sheepdog mailing list