Rename TranspositionTable 'writes' in 'overwrites'

Better documents what that variable means.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2010-06-28 08:20:34 +01:00
parent 5c3ebd1fbf
commit 6c0a37bbf2
2 changed files with 13 additions and 11 deletions

View File

@@ -115,10 +115,10 @@ public:
TTEntry* first_entry(const Key posKey) const;
private:
// Be sure 'writes' is at least one cache line away
// Be sure 'overwrites' is at least one cache line away
// from read only variables.
unsigned char pad_before[64 - sizeof(unsigned)];
unsigned writes; // heavy SMP read/write access here
unsigned overwrites; // heavy SMP read/write access here
unsigned char pad_after[64];
size_t size;