7e3c36cb2126bfe654b93c512dbf6d494d1402d1
8 * Ensure writer threads are registered as urcu readers and with with
10 * Ensure reader threads are registered as urcu readers.
13 typedef uint32_t (*ht_hash_fct
)(void *key
, uint32_t length
, uint32_t initval
);
16 * init_size must be power of two.
18 struct rcu_ht
*ht_new(ht_hash_fct hash_fct
, void (*free_fct
)(void *data
),
19 unsigned long init_size
, uint32_t keylen
,
22 int ht_delete_all(struct rcu_ht
*ht
);
24 int ht_destroy(struct rcu_ht
*ht
);
26 void *ht_lookup(struct rcu_ht
*ht
, void *key
);
28 int ht_add(struct rcu_ht
*ht
, void *key
, void *data
);
30 int ht_delete(struct rcu_ht
*ht
, void *key
);
32 void *ht_steal(struct rcu_ht
*ht
, void *key
);
34 void ht_resize(struct rcu_ht
*ht
, int growth
);
36 uint32_t ht_jhash(void *key
, uint32_t length
, uint32_t initval
);
38 #endif /* _URCU_HT_H */
This page took 0.04064 seconds and 4 git commands to generate.