2008/6/19  <[EMAIL PROTECTED]>:
> I created a new thread and... in this thread only,i updated the NetSNMP 
> CONTAINER using
> CONTAINER.INSERT() and took a mutex before updating it.

That's half of the task, yes.

But as I understand threading (and I am *not* an expert in this field),
you will also need to have a corresponding lock around the code that
*uses* this container.   I.e. the code for your MIB module (and any
helpers that it might rely on).

You will need to look closely at the code that implements your MIB
module, to see exactly where the container is referenced, and hence
the region you need to protect with the lock.

Dave

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to