Function panda_sys::qht_remove[][src]

pub unsafe extern "C" fn qht_remove(
    ht: *mut qht,
    p: *const c_void,
    hash: u32
) -> bool
Expand description

qht_remove - remove a pointer from the hash table @ht: QHT to remove from @p: pointer to be removed @hash: hash corresponding to @p

Attempting to remove a NULL @p is a bug.

Just-removed @p pointers cannot be immediately freed; they need to remain valid until the end of the RCU grace period in which qht_remove() is called. This guarantees that concurrent lookups will always compare against valid data.

Returns true on success. Returns false if the @p-@hash pair was not found.