[prev in list] [next in list] [prev in thread] [next in thread]
List: openvswitch-git
Subject: [ovs-git] Open vSwitch: ovs-atomic-pthreads: Fix "has incomplete type" error. (branch-1.12)
From: dev () openvswitch ! org (dev at openvswitch ! org)
Date: 2013-07-31 23:12:22
Message-ID: E1V4fZ8-0007rl-AP () git ! openvswitch ! org
[Download RAW message or body]
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, branch-1.12 has been updated
via debc095fc68a3e14414e8955a8e50d1e40c50b96 (commit)
from 042ccd2f96d0b1715611defa36d1933e80ecf4d3 (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 debc095fc68a3e14414e8955a8e50d1e40c50b96
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=debc095fc68a3e14414e8955a8e50d1e40c50b96
Author: Alex Wang <alexw at nicira.com>
ovs-atomic-pthreads: Fix "has incomplete type" error.
Commit 97be153858b4cd175cbe7862b8e1624bf22ab98a (clang: Add
annotations for thread safety check.) defined 'struct ovs_mutex'
variable in 'atomic_flag' in 'ovs-atomic-pthreads.h'. This
casued "mutex: has incomplete type" error in compilation when
'ovs-atomic-pthreads.h' is included.
This commit goes back to use 'pthread_mutex_t' for that variable
and adds test for the 'atomic_flag' related functions.
Reported-by: Gurucharan Shetty <gshetty at nicira.com>
Signed-off-by: Alex Wang <alexw at nicira.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>
-----------------------------------------------------------------------
Summary of changes:
lib/ovs-atomic-pthreads.c | 8 ++++----
lib/ovs-atomic-pthreads.h | 2 +-
lib/ovs-thread.c | 2 ++
lib/ovs-thread.h | 5 +++++
tests/test-atomic.c | 12 ++++++++++++
5 files changed, 24 insertions(+), 5 deletions(-)
hooks/post-receive
--
Open vSwitch
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic