aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/transaction_history.h
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-10-06 23:25:43 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-10-06 23:25:43 +0300
commit11fab41c3638e9368c5589c4092af0b0e29ff054 (patch)
treef5b499ea1da16069ed03349b5f47ff725514bf8c /src/wallet/api/transaction_history.h
parentlibwallet_api: test: adjusted mixin_count=4 as it's minumum allowed (diff)
downloadmonero-11fab41c3638e9368c5589c4092af0b0e29ff054.tar.xz
libwallet_api: TransactionHistory: read/write syncchronization
Diffstat (limited to 'src/wallet/api/transaction_history.h')
-rw-r--r--src/wallet/api/transaction_history.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/api/transaction_history.h b/src/wallet/api/transaction_history.h
index 04db7e8e1..1b6617ead 100644
--- a/src/wallet/api/transaction_history.h
+++ b/src/wallet/api/transaction_history.h
@@ -29,7 +29,7 @@
// Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers
#include "wallet/wallet2_api.h"
-#include <boost/thread/mutex.hpp>
+#include <boost/thread/shared_mutex.hpp>
namespace Bitmonero {
@@ -52,7 +52,7 @@ private:
// TransactionHistory is responsible of memory management
std::vector<TransactionInfo*> m_history;
WalletImpl *m_wallet;
- mutable boost::mutex m_historyMutex;
+ mutable boost::shared_mutex m_historyMutex;
};
}