[ovs-dev] [thread-safety 01/11] clang: Add annotations for thread safety check.

Ben Pfaff blp at nicira.com
Tue Jul 30 17:48:47 UTC 2013


On Mon, Jul 29, 2013 at 05:19:04PM -0700, Alex Wang wrote:
> On Mon, Jul 29, 2013 at 10:47 AM, Ben Pfaff <blp at nicira.com> wrote:
> 
> > @@ -22,59 +22,55 @@
> >  #include <sys/types.h>
> >  #include "ovs-atomic.h"
> >  #include "util.h"
> > +
> > +/* Mutex. */
> >
> >  struct OVS_LOCKABLE ovs_mutex {
> >      pthread_mutex_t lock;
> >      const char *where;
> >  };
> >
> > -struct OVS_LOCKABLE ovs_rwlock {
> > -    pthread_rwlock_t lock;
> > -    const char *where;
> > -};
> > -
> 
> Want to ask why do you remove the rwlock here?

Keep reading: I only moved it farther down.



More information about the dev mailing list