summaryrefslogtreecommitdiff
path: root/lib/ovs-thread.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2013-08-12 15:52:42 -0700
committerBen Pfaff <blp@nicira.com>2013-08-13 09:42:32 -0700
commit2fec1533fda568c9d7122e24f5eba7d160a987ab (patch)
tree87d14bded421c33a18bed421c569ffae9553a42c /lib/ovs-thread.h
parent47b52c71232c01837e5c5e374af8033fbf711f0f (diff)
downloadopenvswitch-2fec1533fda568c9d7122e24f5eba7d160a987ab.tar.gz
ovs-thread: Use mutex instead of its address in thread-safety annotation.
CodingStyle says that this is preferred. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/ovs-thread.h')
-rw-r--r--lib/ovs-thread.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ovs-thread.h b/lib/ovs-thread.h
index 5d3964a94..b7bc5d198 100644
--- a/lib/ovs-thread.h
+++ b/lib/ovs-thread.h
@@ -467,12 +467,12 @@ struct ovsthread_once {
}
static inline bool ovsthread_once_start(struct ovsthread_once *once)
- OVS_TRY_LOCK(true, &once->mutex);
+ OVS_TRY_LOCK(true, once->mutex);
void ovsthread_once_done(struct ovsthread_once *once)
- OVS_RELEASES(&once->mutex);
+ OVS_RELEASES(once->mutex);
bool ovsthread_once_start__(struct ovsthread_once *once)
- OVS_TRY_LOCK(false, &once->mutex);
+ OVS_TRY_LOCK(false, once->mutex);
static inline bool
ovsthread_once_is_done__(const struct ovsthread_once *once)