Value | Meaning |
---|---|
BEV_OPT_CLOSE_ON_FREE(1 << 0) | If set, we close the underlying file * descriptor/bufferevent/whatever when this bufferevent is freed. |
BEV_OPT_THREADSAFE(1 << 1) | If set, and threading is enabled, operations on this bufferevent * are protected by a lock |
BEV_OPT_DEFER_CALLBACKS(1 << 2) | If set, callbacks are run deferred in the event loop. |
BEV_OPT_UNLOCK_CALLBACKS(1 << 3) | If set, callbacks are executed without locks being held on the * bufferevent. This option currently requires that * BEV_OPT_DEFER_CALLBACKS also be set; a future version of Libevent * might remove the requirement. |
Options that can be specified when creating a bufferevent