[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

@@ -37,6 +37,8 @@ namespace persistent_data {
void superblock_lock(uint64_t key);
void unlock(uint64_t key);
bool is_locked(uint64_t key) const;
private:
typedef std::map<uint64_t, int> LockMap;