aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/network_throttle.hpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-03-11 20:15:10 +0200
committerRiccardo Spagni <ric@spagni.net>2016-03-11 20:15:10 +0200
commitdfd0e9c97d80c5cd7115d6cbb49cce08168071b6 (patch)
tree7bb5c56c18c83f3180101e310198cb3e3fdf1ab7 /src/p2p/network_throttle.hpp
parentMerge pull request #711 (diff)
parentNeed to link boost::chrono in more places now (diff)
downloadmonero-dfd0e9c97d80c5cd7115d6cbb49cce08168071b6.tar.xz
Merge pull request #712
66c2fc7 Need to link boost::chrono in more places now (Howard Chu) b937a2c Use boost::thread instead of std::thread (Howard Chu)
Diffstat (limited to 'src/p2p/network_throttle.hpp')
-rw-r--r--src/p2p/network_throttle.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/p2p/network_throttle.hpp b/src/p2p/network_throttle.hpp
index 6135ed72b..b954c5b3a 100644
--- a/src/p2p/network_throttle.hpp
+++ b/src/p2p/network_throttle.hpp
@@ -113,16 +113,16 @@ class network_throttle_manager {
//protected:
public: // XXX
// [[note1]]
- static std::once_flag m_once_get_global_throttle_in;
- static std::once_flag m_once_get_global_throttle_inreq; // [[note2]]
- static std::once_flag m_once_get_global_throttle_out;
+ static boost::once_flag m_once_get_global_throttle_in;
+ static boost::once_flag m_once_get_global_throttle_inreq; // [[note2]]
+ static boost::once_flag m_once_get_global_throttle_out;
static std::unique_ptr<i_network_throttle> m_obj_get_global_throttle_in;
static std::unique_ptr<i_network_throttle> m_obj_get_global_throttle_inreq;
static std::unique_ptr<i_network_throttle> m_obj_get_global_throttle_out;
- static std::mutex m_lock_get_global_throttle_in;
- static std::mutex m_lock_get_global_throttle_inreq;
- static std::mutex m_lock_get_global_throttle_out;
+ static boost::mutex m_lock_get_global_throttle_in;
+ static boost::mutex m_lock_get_global_throttle_inreq;
+ static boost::mutex m_lock_get_global_throttle_out;
friend class cryptonote::cryptonote_protocol_handler_base; // FRIEND - to directly access global throttle-s. !! REMEMBER TO USE LOCKS!
friend class connection_basic; // FRIEND - to directly access global throttle-s. !! REMEMBER TO USE LOCKS!