Couchbase C Client  3.3.10
Asynchronous C Client for Couchbase

Detailed Description

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.

Functions

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. More...
 

Function Documentation

◆ lcb_create_libev_io_opts()

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.

Parameters
versionSet this to 0. This may be used in the future to allow variation on the third argument (void* currently).
[out]ioa pointer to a newly created and initialized event handler
loopthe event loop (struct ev_loop *) to hook use (please note that you shouldn't reference the event loop from multiple threads)
Returns
status of the operation