mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 12:27:52 +00:00
Pass by value here too.
This commit is contained in:
parent
e0502719a0
commit
081d04a059
@ -59,7 +59,7 @@ typedef std::list<timed_thread_ptr> thread_list_t;
|
||||
thread_list_t thread_list;
|
||||
|
||||
/* create a timed thread (object creation only) */
|
||||
timed_thread::timed_thread(const std::function<void(thread_handle &)> &start_routine, unsigned
|
||||
timed_thread::timed_thread(const std::function<void(thread_handle &)> start_routine, unsigned
|
||||
int interval_usecs) :
|
||||
p_timed_thread(new _timed_thread), p_thread_handle(this),
|
||||
interval_usecs(interval_usecs), running(false)
|
||||
|
@ -92,7 +92,7 @@ class timed_thread {
|
||||
|
||||
private:
|
||||
/* create a timed thread (object creation only) */
|
||||
timed_thread(const std::function<void(thread_handle &)> &start_routine, unsigned int
|
||||
timed_thread(const std::function<void(thread_handle &)> start_routine, unsigned int
|
||||
interval_usecs);
|
||||
|
||||
/* waits required interval (unless override_wait_time is non-zero) for
|
||||
|
Loading…
Reference in New Issue
Block a user