[sheepdog] [discuss v2] Design of Libsheepdog

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Tue Jul 23 11:13:31 CEST 2013


At Tue, 23 Jul 2013 15:11:31 +0800,
Kai Zhang wrote:
> 
> 3 Asynchronous requests
> 
> Libsheepdog supports asynchronous requests such as sd_vdi_aread(), sd_vdi_awrite(). Libsheepdog implements asynchronous requests by asynchronous event library which is provided by user. For example, user can call sd_libev_attach to ask libsheepdog to use libev as event library.
> 
> Here are some advantages of this way:
> 
> remove dependencies of any event library, user can choose whichever they want.
> better support of multi-platform than pthread
> simple
> This way is inspired from "hiredis" which is a client library of redis.

We already have a tiny event library (lib/event.c).  Your plan don't
use it at all, or supports it as an option?

Thanks,

Kazutaka



More information about the sheepdog mailing list