[ovs-git] Open vSwitch: CodingStyle: Add guide about using thread safety types and annotations. (master)

dev at openvswitch.org dev at openvswitch.org
Fri Aug 9 20:48:25 UTC 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  bdd2719efb7483ea237698d8ca7c1459da01f368 (commit)
       via  344e21d47ecfe342fc5c3c8f32020d7a43089301 (commit)
       via  bd3950ddfa5cf54d79feb332782d66d27c86090f (commit)
      from  ee047520f66b174f6a36beb63e7aaf40526eb0af (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit bdd2719efb7483ea237698d8ca7c1459da01f368
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=bdd2719efb7483ea237698d8ca7c1459da01f368
Author: Alex Wang <alexw at nicira.com>
		
CodingStyle: Add guide about using thread safety types and annotations.
		
This commit adds guide about using thread safety types and annotations
to CodingStyle file.

Signed-off-by: Alex Wang <alexw at nicira.com>
[blp at nicira.com edited the advice slightly]
Signed-off-by: Ben Pfaff <blp at nicira.com>


commit 344e21d47ecfe342fc5c3c8f32020d7a43089301
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=344e21d47ecfe342fc5c3c8f32020d7a43089301
Author: Alex Wang <alexw at nicira.com>
		
clang: Pass objects, not their addresses, to thread-safety macros.
		
This commit changes the code such that arguments to thread-safety
macros are not ampersanded.

Signed-off-by: Alex Wang <alexw at nicira.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>


commit bd3950ddfa5cf54d79feb332782d66d27c86090f
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=bd3950ddfa5cf54d79feb332782d66d27c86090f
Author: Alex Wang <alexw at nicira.com>
		
clang: Use OVS_REQUIRES() instead of OVS_REQ_WRLOCK() for plain mutex.
		
This commit changes the code to use OVS_REQUIRES() instead of
OVS_REQ_WRLOCK(), for plain mutex.

Signed-off-by: Alex Wang <alexw at nicira.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 CodingStyle                  |   15 +++++
 lib/bfd.c                    |   48 +++++++-------
 lib/cfm.c                    |   14 ++---
 lib/lacp.c                   |   40 ++++++------
 lib/stp.c                    |  142 +++++++++++++++++++++---------------------
 ofproto/ofproto-dpif-ipfix.c |    2 +-
 ofproto/ofproto-dpif-sflow.c |   10 +--
 ofproto/ofproto-dpif.c       |    2 +-
 ofproto/tunnel.c             |   16 ++---
 vswitchd/system-stats.c      |    2 +-
 10 files changed, 153 insertions(+), 138 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list