Couchbase C Client
3.3.14
Asynchronous C Client for Couchbase
|
libev integration
lcb_create_libevent_io_opts() allows you to create an instance of the ioopts that will utilize libevent. You may either supply an event base (if you'd like to add your own events into the loop), or it will create its own.
lcb_STATUS lcb_create_libevent_io_opts | ( | int | version, |
lcb_io_opt_t * | io, | ||
void * | base ) |
Create an instance of an event handler that utilize libevent for event notification.
version | the API version to use |
base | the event base (struct event_base *) to hook use (please note that you shouldn't reference the event base from multiple threads) |
io | a pointer to a newly created and initialized event handler |