|
|
@ -453,12 +453,12 @@ ck_ht_next(struct ck_ht *table,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool
|
|
|
|
bool
|
|
|
|
ck_ht_reset_spmc(struct ck_ht *table)
|
|
|
|
ck_ht_reset_size_spmc(struct ck_ht *table, uint64_t size)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
struct ck_ht_map *map, *update;
|
|
|
|
struct ck_ht_map *map, *update;
|
|
|
|
|
|
|
|
|
|
|
|
map = table->map;
|
|
|
|
map = table->map;
|
|
|
|
update = ck_ht_map_create(table, map->capacity);
|
|
|
|
update = ck_ht_map_create(table, size);
|
|
|
|
if (update == NULL)
|
|
|
|
if (update == NULL)
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
@ -467,6 +467,14 @@ ck_ht_reset_spmc(struct ck_ht *table)
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool
|
|
|
|
|
|
|
|
ck_ht_reset_spmc(struct ck_ht *table)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
struct ck_ht_map *map = table->map;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ck_ht_reset_size_spmc(table, map->capacity);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool
|
|
|
|
bool
|
|
|
|
ck_ht_grow_spmc(ck_ht_t *table, uint64_t capacity)
|
|
|
|
ck_ht_grow_spmc(ck_ht_t *table, uint64_t capacity)
|
|
|
|
{
|
|
|
|
{
|
|
|
|