Re: [AOLSERVER] Race conditions with Ns Set Persist?

2012-09-24 Thread Jeff Rogers
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

Re: [AOLSERVER] Race conditions with Ns Set Persist?

2012-09-24 Thread Sep Ng
As far as I can tell, the ns_sets are being used exclusively by specific threads, so the data shouldn't really be going from one ns_set to another, except that it does happen, so I'm thinking there might be something happening with the ns_set implementation. I'll look into the possibility of