Hi, I want to use snmpd to develop an application. I use callback mechanism(SNMP_CALLBACK_LIBRARY and SNMP_CALLBACK_SESSION_INIT) to let snmpd create a thread which will listen user defined events and update the global cache or generate traps according to the analysis of these events. The global cache is user defined and it's used in the MIB handlers.
Since there are at least two threads running in snmpd: the main thread which handles SNMP requests and the event listening thread, we must make sure snmpd could run thread-safely. But the online documents of net-snmp say net-snmp is not fully thread safe. So how about the current thread-safe status of net-snmp? And if net-snmp is still not thread-safe, how should I do to make my application thread-safe? I have already read the FAQ and README.thread, but I want to know some further reference or advice to achieve my goal. And what README.thread says is still valid now? Thanks in advance for your kindly help _________________________________________________________ Do You Yahoo!? 注册世界一流品质的雅虎免费电邮 http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
