projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add type-checked versions of allocation and deallocations functions
[lttng-tools.git]
/
src
/
common
/
hashtable
/
hashtable.cpp
diff --git
a/src/common/hashtable/hashtable.cpp
b/src/common/hashtable/hashtable.cpp
index c641dad3c8db2949e156dfd8f4ecd0a691508595..1b40f91f125fa97ef46d409476148d1ef29585dd 100644
(file)
--- a/
src/common/hashtable/hashtable.cpp
+++ b/
src/common/hashtable/hashtable.cpp
@@
-10,11
+10,11
@@
#include <urcu.h>
#include <urcu/compiler.h>
#include <urcu.h>
#include <urcu/compiler.h>
-#include <common/common.h>
-#include <common/defaults.h>
+#include <common/common.h
pp
>
+#include <common/defaults.h
pp
>
-#include "hashtable.h"
-#include "utils.h"
+#include "hashtable.h
pp
"
+#include "utils.h
pp
"
/* seed_lock protects both seed_init and lttng_ht_seed. */
static pthread_mutex_t seed_lock = PTHREAD_MUTEX_INITIALIZER;
/* seed_lock protects both seed_init and lttng_ht_seed. */
static pthread_mutex_t seed_lock = PTHREAD_MUTEX_INITIALIZER;
@@
-110,7
+110,7
@@
struct lttng_ht *lttng_ht_new(unsigned long size, lttng_ht_type type)
}
pthread_mutex_unlock(&seed_lock);
}
pthread_mutex_unlock(&seed_lock);
- ht =
(lttng_ht *) zmalloc(sizeof(*ht)
);
+ ht =
zmalloc<lttng_ht>(
);
if (ht == NULL) {
PERROR("zmalloc lttng_ht");
goto error;
if (ht == NULL) {
PERROR("zmalloc lttng_ht");
goto error;
This page took
0.023746 seconds
and
4
git commands to generate.