projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lfstack: combine C++ API cds_lfs_stack_cast with overloading
[urcu.git]
/
src
/
rculfhash-internal.h
diff --git
a/src/rculfhash-internal.h
b/src/rculfhash-internal.h
index d7cec95a10e286f4693c91925e61441146196ebe..e17210b8624cf7fd370ef88f591174e100085548 100644
(file)
--- a/
src/rculfhash-internal.h
+++ b/
src/rculfhash-internal.h
@@
-24,8
+24,10
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <urcu/assert.h>
#include <urcu/rculfhash.h>
#include <stdio.h>
#include <urcu/rculfhash.h>
#include <stdio.h>
+#include <stdlib.h>
#ifdef DEBUG
#define dbg_printf(fmt, args...) printf("[debug rculfhash] " fmt, ## args)
#ifdef DEBUG
#define dbg_printf(fmt, args...) printf("[debug rculfhash] " fmt, ## args)
@@
-82,7
+84,7
@@
struct cds_lfht {
*/
pthread_mutex_t resize_mutex; /* resize mutex: add/del mutex */
pthread_attr_t *resize_attr; /* Resize threads attributes */
*/
pthread_mutex_t resize_mutex; /* resize mutex: add/del mutex */
pthread_attr_t *resize_attr; /* Resize threads attributes */
- unsigned int in_progress_
resize, in_progress_
destroy;
+ unsigned int in_progress_destroy;
unsigned long resize_target;
int resize_initiated;
unsigned long resize_target;
int resize_initiated;
@@
-168,7
+170,7
@@
struct cds_lfht *__default_alloc_cds_lfht(
struct cds_lfht *ht;
ht = calloc(1, cds_lfht_size);
struct cds_lfht *ht;
ht = calloc(1, cds_lfht_size);
- assert(ht);
+
urcu_posix_
assert(ht);
ht->mm = mm;
ht->bucket_at = mm->bucket_at;
ht->mm = mm;
ht->bucket_at = mm->bucket_at;
This page took
0.025064 seconds
and
4
git commands to generate.