Lines Matching refs:priority
417 struct ck_ht_entry *entry, *priority, snapshot; in ck_ht_gc() local
435 entry = ck_ht_map_probe_wr(map, h, &snapshot, &priority, in ck_ht_gc()
445 entry = ck_ht_map_probe_wr(map, h, &snapshot, &priority, in ck_ht_gc()
453 if (priority != NULL) { in ck_ht_gc()
457 CK_HT_TYPE_STORE(&priority->key_length, entry->key_length); in ck_ht_gc()
458 CK_HT_TYPE_STORE(&priority->hash, entry->hash); in ck_ht_gc()
460 ck_pr_store_ptr_unsafe(&priority->value, (void *)entry->value); in ck_ht_gc()
462 ck_pr_store_ptr_unsafe(&priority->key, (void *)entry->key); in ck_ht_gc()
826 struct ck_ht_entry snapshot, *candidate, *priority; in ck_ht_set_spmc() local
835 candidate = ck_ht_map_probe_wr(map, h, &snapshot, &priority, in ck_ht_set_spmc()
840 candidate = ck_ht_map_probe_wr(map, h, &snapshot, &priority, in ck_ht_set_spmc()
846 if (priority != NULL) { in ck_ht_set_spmc()
859 candidate = priority; in ck_ht_set_spmc()
864 priority != NULL && candidate != priority) { in ck_ht_set_spmc()
875 CK_HT_TYPE_STORE(&priority->key_length, entry->key_length); in ck_ht_set_spmc()
876 CK_HT_TYPE_STORE(&priority->hash, entry->hash); in ck_ht_set_spmc()
884 if (priority->value == CK_HT_KEY_TOMBSTONE) { in ck_ht_set_spmc()
889 ck_pr_store_ptr_unsafe(&priority->value, (void *)entry->value); in ck_ht_set_spmc()
891 ck_pr_store_ptr_unsafe(&priority->key, (void *)entry->key); in ck_ht_set_spmc()
913 if (priority != NULL) { in ck_ht_set_spmc()
914 if (priority->key == CK_HT_KEY_TOMBSTONE) { in ck_ht_set_spmc()
919 candidate = priority; in ck_ht_set_spmc()
963 struct ck_ht_entry snapshot, *candidate, *priority; in ck_ht_put_spmc() local
971 candidate = ck_ht_map_probe_wr(map, h, &snapshot, &priority, in ck_ht_put_spmc()
976 candidate = ck_ht_map_probe_wr(map, h, &snapshot, &priority, in ck_ht_put_spmc()
982 if (candidate != NULL || priority != NULL) in ck_ht_put_spmc()
989 if (priority != NULL) { in ck_ht_put_spmc()
995 candidate = priority; in ck_ht_put_spmc()