X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Frculfhash.h;h=4a897faea7c8f52092d4e4aeded78f1c65511ffa;hb=d933dd0e116eceb59b1df0f223e3962a1e51bfb3;hp=7afd6244a97df896cc54af017e8f217edda926a5;hpb=b198f0fda77c816d80f63cfa2e71a7e0b4496736;p=urcu.git diff --git a/urcu/rculfhash.h b/urcu/rculfhash.h index 7afd624..4a897fa 100644 --- a/urcu/rculfhash.h +++ b/urcu/rculfhash.h @@ -40,7 +40,7 @@ extern "C" { struct _cds_lfht_node { struct cds_lfht_node *next; /* ptr | DUMMY_FLAG | REMOVED_FLAG */ unsigned long reverse_hash; -} __attribute__((aligned(8))); +} __attribute__((aligned(4))); struct cds_lfht_node { /* cache-hot for iteration */ @@ -165,8 +165,10 @@ int cds_lfht_destroy(struct cds_lfht *ht, pthread_attr_t **attr); * Call with rcu_read_lock held. */ void cds_lfht_count_nodes(struct cds_lfht *ht, + long *approx_before, unsigned long *count, - unsigned long *removed); + unsigned long *removed, + long *approx_after); /* * cds_lfht_lookup - lookup a node by key.