Skip to main content

us_create_loop

Function us_create_loop 

Source
pub unsafe extern "C" fn us_create_loop(
    hint: *mut c_void,
    wakeup_cb: Option<unsafe extern "C" fn(*mut PosixLoop)>,
    pre_cb: Option<unsafe extern "C" fn(*mut PosixLoop)>,
    post_cb: Option<unsafe extern "C" fn(*mut PosixLoop)>,
    ext_size: u32,
) -> *mut PosixLoop
Expand description

Loop construction. Provided by libusockets.a (C, loop.c). Allocates sizeof(us_loop_t) + ext_size and initialises wakeup eventfd.