aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/wallet.h
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-07-14 13:33:49 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-07-18 23:03:09 +0300
commitd7597c5961ed1e8be8a7eca8c52e491b500797c6 (patch)
treee87958c772bf6c0f4828cc269e280b029e159515 /src/wallet/api/wallet.h
parentwallet_api: async init, Wallet::connected status, log level (diff)
downloadmonero-d7597c5961ed1e8be8a7eca8c52e491b500797c6.tar.xz
refreshing wallet even if error happened
Diffstat (limited to '')
-rw-r--r--src/wallet/api/wallet.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/api/wallet.h b/src/wallet/api/wallet.h
index 68ca364cf..9a290e0bc 100644
--- a/src/wallet/api/wallet.h
+++ b/src/wallet/api/wallet.h
@@ -93,6 +93,7 @@ private:
void doRefresh();
void startRefresh();
void stopRefresh();
+ void pauseRefresh();
private:
friend class PendingTransactionImpl;
@@ -111,7 +112,10 @@ private:
std::atomic<bool> m_refreshEnabled;
std::atomic<bool> m_refreshThreadDone;
std::atomic<int> m_refreshIntervalSeconds;
+ // synchronizing refresh loop;
std::mutex m_refreshMutex;
+
+ // synchronizing sync and async refresh
std::mutex m_refreshMutex2;
std::condition_variable m_refreshCV;
std::thread m_refreshThread;