Re: [ovs-dev] [thread-safety 02/11 v2] stp: Make the STP module thread safe.

2013-08-01 Thread Ethan Jackson
Thanks for the review, I'll merge this soon. Ethan On Thu, Aug 1, 2013 at 11:06 AM, Ben Pfaff wrote: > On Tue, Jul 30, 2013 at 05:59:10PM -0700, Ethan Jackson wrote: >> Signed-off-by: Ethan Jackson >> --- >> >> This version makes the "all_stps" pointer const. Adds a comment >> explaining why

Re: [ovs-dev] [thread-safety 02/11 v2] stp: Make the STP module thread safe.

2013-08-01 Thread Ben Pfaff
On Tue, Jul 30, 2013 at 05:59:10PM -0700, Ethan Jackson wrote: > Signed-off-by: Ethan Jackson > --- > > This version makes the "all_stps" pointer const. Adds a comment > explaining why we're using a recursive mutex. And systematically > marks the helper functions as requireing a lock. You'll n

[ovs-dev] [thread-safety 02/11 v2] stp: Make the STP module thread safe.

2013-07-30 Thread Ethan Jackson
Signed-off-by: Ethan Jackson --- This version makes the "all_stps" pointer const. Adds a comment explaining why we're using a recursive mutex. And systematically marks the helper functions as requireing a lock. --- lib/stp.c | 426 +++-