git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Setting tag sliver-openvswitch-2.2.90-1
[sliver-openvswitch.git]
/
lib
/
hmap.h
diff --git
a/lib/hmap.h
b/lib/hmap.h
index
76a73ac
..
9fb83d5
100644
(file)
--- a/
lib/hmap.h
+++ b/
lib/hmap.h
@@
-19,6
+19,7
@@
#include <stdbool.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdlib.h>
+#include "ovs-atomic.h"
#include "util.h"
#ifdef __cplusplus
#include "util.h"
#ifdef __cplusplus
@@
-189,7
+190,9
@@
hmap_capacity(const struct hmap *hmap)
}
/* Returns true if 'hmap' currently contains no nodes,
}
/* Returns true if 'hmap' currently contains no nodes,
- * false otherwise. */
+ * false otherwise.
+ * Note: While hmap in general is not thread-safe without additional locking,
+ * hmap_is_empty() is. */
static inline bool
hmap_is_empty(const struct hmap *hmap)
{
static inline bool
hmap_is_empty(const struct hmap *hmap)
{