[][src]Function ejdb_sys::bson_set_oid_inc

pub unsafe extern "C" fn bson_set_oid_inc(
    func: Option<unsafe extern "C" fn() -> c_int>
)

Set a function to be used to generate the incrementing part of an object id (last four bytes). If you need thread-safety in generating object ids, you should set this function.

@param func a pointer to a function that returns an int.