aboutsummaryrefslogtreecommitdiff
path: root/src/scheduler.h
diff options
context:
space:
mode:
authorArvid Norberg <arvid@blockstream.io>2018-09-13 10:36:41 -0700
committerArvid Norberg <arvid@blockstream.io>2018-09-13 10:36:41 -0700
commit3ccfa34b32b7ed9d7bef05baa36827b4b262197e (patch)
treef8a24afd1e7d6949040aff1e177b8adf7bc84f83 /src/scheduler.h
parentf0a6a922fe64c16829649281f182dc8c5e153333 (diff)
convert C-style (void) parameter lists to C++ style ()
Diffstat (limited to 'src/scheduler.h')
-rw-r--r--src/scheduler.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scheduler.h b/src/scheduler.h
index 953d6c37de..6c45f508ec 100644
--- a/src/scheduler.h
+++ b/src/scheduler.h
@@ -40,7 +40,7 @@ public:
CScheduler();
~CScheduler();
- typedef std::function<void(void)> Function;
+ typedef std::function<void()> Function;
// Call func at/after time t
void schedule(Function f, boost::chrono::system_clock::time_point t=boost::chrono::system_clock::now());
@@ -99,7 +99,7 @@ private:
CScheduler *m_pscheduler;
CCriticalSection m_cs_callbacks_pending;
- std::list<std::function<void (void)>> m_callbacks_pending GUARDED_BY(m_cs_callbacks_pending);
+ std::list<std::function<void ()>> m_callbacks_pending GUARDED_BY(m_cs_callbacks_pending);
bool m_are_callbacks_running GUARDED_BY(m_cs_callbacks_pending) = false;
void MaybeScheduleProcessQueue();
@@ -114,7 +114,7 @@ public:
* Practically, this means that callbacks can behave as if they are executed
* in order by a single thread.
*/
- void AddToProcessQueue(std::function<void (void)> func);
+ void AddToProcessQueue(std::function<void ()> func);
// Processes all remaining queue members on the calling thread, blocking until queue is empty
// Must be called after the CScheduler has no remaining processing threads!