ns_sets are not internally interlocked.  If you are using the same
shared set in multiple threads, you need to protect it with a mutex.

Do you specifically need the indexability of ns_sets? nsvs are easier to
use for most cases, and if you have more than a few keys probably faster
too.

-J

Sep Ng wrote:
> I have several ns_set objects in my aolserver with the persist flag on
> to manage several things but I'm noticing that some of the ns_set
> objects are losing keys for no apparent reason.  Also at one instance,
> the ns_set object retrieved belongs to a totally different one.  I'm not
> sure if there's a bug with ns_set or if there's something wrong with my
> code, but I thought I'd throw this one out there to see if you guys have
> experienced this issue before.
>
> Thanks in advance.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
aolserver-talk mailing list
aolserver-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aolserver-talk

Reply via email to