1
0
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:
Brenden Matthews 2010-01-12 10:38:30 -08:00
parent e0502719a0
commit 081d04a059
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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