Eliminate redundant write set waits. You don't need to wait on future write sets.

This commit is contained in:
JoelKatz
2012-11-28 15:34:47 -08:00
parent 6aca65ff76
commit bfbf0aa185
2 changed files with 8 additions and 5 deletions

View File

@@ -47,8 +47,9 @@ class HashedObjectStore
protected:
TaggedCache<uint256, HashedObject> mCache;
boost::mutex mWriteMutex;
boost::condition_variable mWriteCondition;
boost::mutex mWriteMutex;
boost::condition_variable mWriteCondition;
int mWriteGeneration;
std::vector< boost::shared_ptr<HashedObject> > mWriteSet;
bool mWritePending;