mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-13 19:22:58 +00:00
Pass function by value to timed_thread::create().
This commit is contained in:
parent
0f3a56ccbe
commit
e0502719a0
@ -59,7 +59,7 @@ class thread_handle {
|
||||
class timed_thread {
|
||||
public:
|
||||
/* create a timed thread (object creation only) */
|
||||
static timed_thread_ptr create(const std::function<void(thread_handle &)> &start_routine, const unsigned int
|
||||
static timed_thread_ptr create(const std::function<void(thread_handle &)> start_routine, const unsigned int
|
||||
interval_usecs, bool register_for_destruction = true) {
|
||||
timed_thread_ptr ptr(new timed_thread(std::cref(start_routine), interval_usecs));
|
||||
if (register_for_destruction) {
|
||||
|
Loading…
Reference in New Issue
Block a user