diff options
author | Chris Wilson <chris+github@qwirx.com> | 2012-11-18 16:29:41 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2012-11-18 16:29:41 +0000 |
commit | 6af3a67ae549913692a4cee69fabb50988a61fe9 (patch) | |
tree | 918fe6350d522acb4c608bb77ee93cade767ad7c /lib/backupstore/BackupStoreAccounts.h | |
parent | 3db7d944f5849db8ea8098de54ad45bbb0bf6b86 (diff) |
Add a helper in BackupStoreAccounts to get a write lock on an account.
Use it in two places to simplify code (not in BackupStoreContext yet,
because that wants to communicate with HK process as well).
Diffstat (limited to 'lib/backupstore/BackupStoreAccounts.h')
-rw-r--r-- | lib/backupstore/BackupStoreAccounts.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/backupstore/BackupStoreAccounts.h b/lib/backupstore/BackupStoreAccounts.h index 109de701..3163f15c 100644 --- a/lib/backupstore/BackupStoreAccounts.h +++ b/lib/backupstore/BackupStoreAccounts.h @@ -13,6 +13,7 @@ #include <string> #include "BackupStoreAccountDatabase.h" +#include "NamedLock.h" // -------------------------------------------------------------------------- // @@ -41,6 +42,7 @@ public: { return MakeAccountRootDir(rEntry.GetID(), rEntry.GetDiscSet()); } + void LockAccount(int32_t ID, NamedLock& rNamedLock); private: static std::string MakeAccountRootDir(int32_t ID, int DiscSet); |