diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-11-30 07:31:11 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-11-30 07:31:16 +0200 |
commit | e80b64c5f2861b7d1f0cd62604c7f922a1e3a20d (patch) | |
tree | 200f691c7fcadfa81169b92ec500a72d3100e219 /src/common/util.h | |
parent | Merge pull request #511 (diff) | |
parent | wallet: cancellable refresh (diff) | |
download | monero-e80b64c5f2861b7d1f0cd62604c7f922a1e3a20d.tar.xz |
Merge pull request #510
d68a63e wallet: cancellable refresh (moneromooo-monero)
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/common/util.h b/src/common/util.h index 236a0b6f0..937f7e44d 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -130,7 +130,7 @@ namespace tools { if (CTRL_C_EVENT == type || CTRL_BREAK_EVENT == type) { - handle_signal(); + handle_signal(type); } else { @@ -141,21 +141,21 @@ namespace tools } #else /*! \brief handler for NIX */ - static void posix_handler(int /*type*/) + static void posix_handler(int type) { - handle_signal(); + handle_signal(type); } #endif /*! \brief calles m_handler */ - static void handle_signal() + static void handle_signal(int type) { static std::mutex m_mutex; std::unique_lock<std::mutex> lock(m_mutex); - m_handler(); + m_handler(type); } /*! \brief where the installed handler is stored */ - static std::function<void(void)> m_handler; + static std::function<void(int)> m_handler; }; } |