Function parking_lot_core::parking_lot::rehash_bucket_into
source · unsafe fn rehash_bucket_into(bucket: &'static Bucket, table: &mut HashTable)
Expand description
Iterate through all ThreadData
objects in the bucket and insert them into the given table
in the bucket their key correspond to for this table.
§Safety
The given bucket
must have a correctly constructed linked list under queue_head
, containing
ThreadData
instances that must stay valid at least as long as the given table
is in use.
The given table
must only contain buckets with correctly constructed linked lists.