[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

@@ -527,4 +527,11 @@ block_manager<BlockSize>::flush() const
boost::bind(&block_manager<BlockSize>::write_block, this, _1));
}
template <uint32_t BlockSize>
bool
block_manager<BlockSize>::is_locked(block_address b) const
{
return tracker_.is_locked(b);
}
//----------------------------------------------------------------