2 * rcuja/rcuja-hashtable.c
4 * Userspace RCU library - RCU Judy Array Shadow Node Hash Table
6 * Copyright 2012 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
29 * The hash table used by judy array updates only for the shadow node
30 * mapping rely on standard urcu_mb flavor. It does not put any
31 * requirement on the RCU flavor used by applications using the judy
36 #include <urcu/rcuja.h>
37 #include <urcu/compiler.h>
38 #include <urcu/arch.h>
40 #include <urcu-pointer.h>
42 #include "rcuja-internal.h"
45 __attribute__((visibility("protected")))
46 struct cds_lfht
*rcuja_create_ht(void)
48 return cds_lfht_new(1, 1, 0,
49 CDS_LFHT_AUTO_RESIZE
| CDS_LFHT_ACCOUNTING
,
53 __attribute__((visibility("protected")))
54 void rcuja_delete_ht(struct cds_lfht
*ht
)
58 ret
= cds_lfht_destroy(ht
, NULL
);
This page took 0.067808 seconds and 5 git commands to generate.