X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fhmap.h;h=9fb83d5ab5b41e01e99b24ac0b0d89221f623296;hb=0ef165ecb57943e17a8ee8270df68ffb8d032e29;hp=76a73ac1ad23852e01acc003fb07e24820016264;hpb=0c5e05bf515ceb5e3e4f7f01834054bb34519752;p=sliver-openvswitch.git diff --git a/lib/hmap.h b/lib/hmap.h index 76a73ac1a..9fb83d5ab 100644 --- a/lib/hmap.h +++ b/lib/hmap.h @@ -19,6 +19,7 @@ #include #include +#include "ovs-atomic.h" #include "util.h" #ifdef __cplusplus @@ -189,7 +190,9 @@ hmap_capacity(const struct hmap *hmap) } /* 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) {