[block, lock_checker] add an is_locked() method for use in unit tests.

This commit is contained in:
Joe Thornber
2013-04-29 12:31:30 +01:00
parent a0f53f47aa
commit a7c0b0c39b
4 changed files with 21 additions and 0 deletions

View File

@ -198,6 +198,11 @@ namespace persistent_data {
void flush() const;
// This is just for unit tests, don't call in application
// code.
bool is_locked(block_address b) const;
private:
void check(block_address b) const;
void write_block(typename block::ptr b) const;