Couchbase C Client
3.3.14
Asynchronous C Client for Couchbase
|
libev integration
libcouchbase_create_libev_io_opts() allows you to create an instance of the ioopts that will utilize libev. You may either supply an event loop (if you'd like to add your own events into the loop), or it will create it's own.
lcb_STATUS lcb_create_libev_io_opts | ( | int | version, |
lcb_io_opt_t * | io, | ||
void * | loop ) |
Create an instance of an event handler that utilize libev for event notification.
version | Set this to 0. This may be used in the future to allow variation on the third argument (void* currently). | |
[out] | io | a pointer to a newly created and initialized event handler |
loop | the event loop (struct ev_loop *) to hook use (please note that you shouldn't reference the event loop from multiple threads) |