Skip to content

Commit

Permalink
compiler.h: Update documentation
Browse files Browse the repository at this point in the history
OVS_LOCKS_EXCLUDED doesn't exist. This should be OVS_EXCLUDED.

Signed-off-by: Joe Stringer <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
joestringer authored and blp committed Dec 23, 2013
1 parent 60e4625 commit 0e9a76b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@
* - OVS_REQUIRES(MUTEX) indicate that the function may only be called with
* MUTEX held and that the function does not release MUTEX.
*
* - OVS_LOCKS_EXCLUDED(MUTEX) indicates that the function may only be
* called when MUTEX is not held.
* - OVS_EXCLUDED(MUTEX) indicates that the function may only be called when
* MUTEX is not held.
*
*
* The following variants, with the same syntax, apply to reader-writer locks:
Expand All @@ -108,7 +108,7 @@
* OVS_RELEASES OVS_RELEASES OVS_RELEASES
* OVS_TRY_LOCK OVS_TRY_RDLOCK OVS_TRY_WRLOCK
* OVS_REQUIRES OVS_REQ_RDLOCK OVS_REQ_WRLOCK
* OVS_LOCKS_EXCLUDED OVS_LOCKS_EXCLUDED OVS_LOCKS_EXCLUDED
* OVS_EXCLUDED OVS_EXCLUDED OVS_EXCLUDED
*/
#define OVS_LOCKABLE __attribute__((lockable))
#define OVS_REQ_RDLOCK(...) __attribute__((shared_locks_required(__VA_ARGS__)))
Expand Down

0 comments on commit 0e9a76b

Please sign in to comment.