On Sat, Apr 19, 2014 at 8:30 PM, YAMAMOTO Takashi <yamam...@valinux.co.jp> wrote: >> ovsdb-server on windows crashes without it. >> >> Signed-off-by: Gurucharan Shetty <gshe...@nicira.com> > > why is it necessary on windows?
I see why this patch is not correct. There is a dynamic initialization of the mutex in netdev_initialize(). For the question on why this was necessary on Windows, I see the following behavior. With gcc on Linux, the following code works without the initialization: pthread_mutex_t test_lock; main() { pthread_mutex_lock(&test_lock); printf("Inside mutex"); pthread_mutex_unlock(&test_lock); } With Visual studio the same code crashes. I will update this patch when I re-spin the series. Thanks, Guru > > YAMAMOTO Takashi _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev