Re: bad locking code for multi-threaded applications

2008-01-18 Thread Thomas Anders
Sergey Matveychuk schrieb: I've add a simple waiting loop and messages gone. A patch in an attachment. I do no magic with autoconf and includes is not enveloped with #if. May be somebody can do this work? Please submit to http://www.net-snmp.org/patches so it won't get lost. +Thomas --

bad locking code for multi-threaded applications

2008-01-18 Thread Sergey Matveychuk
Hello. I've written a multi-threaded puller for getting a lot of SNMP data. When the application do pulling I see the messages: _callback_lock already locket in snmp_call_callbacks netsnmp_assert 1==_locks[major][minor] failed callback.c:126 _callback_lock() Looking at callback.c I've found

Re: bad locking code for multi-threaded applications

2008-01-18 Thread Sergey Matveychuk
Thomas Anders wrote: Sergey Matveychuk schrieb: I've add a simple waiting loop and messages gone. A patch in an attachment. I do no magic with autoconf and includes is not enveloped with #if. May be somebody can do this work? Please submit to http://www.net-snmp.org/patches so it won't get