ck_ht: Drop usage of ck_ht_t.

ck_pring
Samy Al Bahra 12 years ago
parent 4c878ff1de
commit 554f11229e

@ -178,7 +178,7 @@ ck_ht_map_probe_next(struct ck_ht_map *map, size_t offset, ck_ht_hash_t h, size_
} }
bool bool
ck_ht_init(ck_ht_t *table, ck_ht_init(struct ck_ht *table,
enum ck_ht_mode mode, enum ck_ht_mode mode,
ck_ht_hash_cb_t *h, ck_ht_hash_cb_t *h,
struct ck_malloc *m, struct ck_malloc *m,
@ -404,7 +404,7 @@ leave:
} }
uint64_t uint64_t
ck_ht_count(ck_ht_t *table) ck_ht_count(struct ck_ht *table)
{ {
struct ck_ht_map *map = ck_pr_load_ptr(&table->map); struct ck_ht_map *map = ck_pr_load_ptr(&table->map);
@ -459,7 +459,7 @@ ck_ht_reset_spmc(struct ck_ht *table)
} }
bool bool
ck_ht_grow_spmc(ck_ht_t *table, uint64_t capacity) ck_ht_grow_spmc(struct ck_ht *table, uint64_t capacity)
{ {
struct ck_ht_map *map, *update; struct ck_ht_map *map, *update;
struct ck_ht_entry *bucket, *previous; struct ck_ht_entry *bucket, *previous;
@ -550,7 +550,7 @@ restart:
} }
bool bool
ck_ht_remove_spmc(ck_ht_t *table, ck_ht_remove_spmc(struct ck_ht *table,
ck_ht_hash_t h, ck_ht_hash_t h,
ck_ht_entry_t *entry) ck_ht_entry_t *entry)
{ {
@ -605,7 +605,7 @@ ck_ht_remove_spmc(ck_ht_t *table,
} }
bool bool
ck_ht_get_spmc(ck_ht_t *table, ck_ht_get_spmc(struct ck_ht *table,
ck_ht_hash_t h, ck_ht_hash_t h,
ck_ht_entry_t *entry) ck_ht_entry_t *entry)
{ {
@ -648,7 +648,7 @@ restart:
} }
bool bool
ck_ht_set_spmc(ck_ht_t *table, ck_ht_set_spmc(struct ck_ht *table,
ck_ht_hash_t h, ck_ht_hash_t h,
ck_ht_entry_t *entry) ck_ht_entry_t *entry)
{ {
@ -762,7 +762,7 @@ ck_ht_set_spmc(ck_ht_t *table,
} }
bool bool
ck_ht_put_spmc(ck_ht_t *table, ck_ht_put_spmc(struct ck_ht *table,
ck_ht_hash_t h, ck_ht_hash_t h,
ck_ht_entry_t *entry) ck_ht_entry_t *entry)
{ {

Loading…
Cancel
Save