mike5 Posted June 15, 2011 Report Share Posted June 15, 2011 Hi all. I have a strange problem with data value references. I have an object, that stores its values in a hash (variant), and that hash is in a data value reference. There are two threads, and each one of them has a copy of this object. In one thread I am adding stuff to the hash, and in the other I am accessing it. Each thread accesses the DVR in lock-action-unlock manner, so no thread is locking the DVR for a long period of time. This is what happens: thread 1: add to hash 07:55:45,255265 thread 1: add to hash 07:55:46,803353 thread 2: hash.size=2 07:55:57,504966 thread 1: add to hash 07:56:00,908160 thread 1: add to hash 07:56:00,972164 thread 2: hash.size=4 07:56:00,967164 The last two are out of order, but that's because I am logging the addition some time after the fact. So, it seems that after the app is running for a while, the "DVR sync" is working the way it should, but at the start it takes 11 seconds for it to happen. Is there a way to make it fast at the start as well? Some sort of "flush" maybe? Thanks and br, Mike Quote Link to comment
mike5 Posted June 15, 2011 Author Report Share Posted June 15, 2011 Well. Found the problem, and it was me Sorry for the noise. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.