diff options
author | cslashm <cslashm@gmail.com> | 2018-03-26 12:38:38 +0200 |
---|---|---|
committer | cslashm <cslashm@gmail.com> | 2018-03-31 18:00:33 +0200 |
commit | 100b7bc10dcb83f81d6bbd37eca1c8708c4dfbb6 (patch) | |
tree | de26f5d5de0f90bc98bb78c66642b5ded53e5faa /src/device/device_default.hpp | |
parent | Automatic height setup when creating/restoring hw device. (diff) | |
download | monero-100b7bc10dcb83f81d6bbd37eca1c8708c4dfbb6.tar.xz |
Change mutex lock model to avoid dead lock and ensure locks are always released.
Additional cosmetic fixes:
move 'name' as protected
remove unnecessary local var
Fix debug log
Diffstat (limited to '')
-rw-r--r-- | src/device/device_default.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/device/device_default.hpp b/src/device/device_default.hpp index 02faeba0c..f6a3261eb 100644 --- a/src/device/device_default.hpp +++ b/src/device/device_default.hpp @@ -60,6 +60,13 @@ namespace hw { bool disconnect() override; /* ======================================================================= */ + /* LOCKER */ + /* ======================================================================= */ + void lock(void) override; + void unlock(void) override; + bool try_lock(void) override; + + /* ======================================================================= */ /* WALLET & ADDRESS */ /* ======================================================================= */ bool get_public_address(cryptonote::account_public_address &pubkey) override; |