diff options
author | vng <viktor.govako@gmail.com> | 2013-07-05 21:28:06 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:58:13 +0300 |
commit | d86c0a6b28d1c54db01c4ce0c1a5e2696db50636 (patch) | |
tree | 9c39b61f7c49c5ecaf936247467711e4f1fe53af /base | |
parent | d39d7542f3a45ada3907506a6880053634e35274 (diff) |
Fix according to code review.
Diffstat (limited to 'base')
-rw-r--r-- | base/scheduled_task.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/scheduled_task.cpp b/base/scheduled_task.cpp index e96f9ad01e..56643778b1 100644 --- a/base/scheduled_task.cpp +++ b/base/scheduled_task.cpp @@ -32,8 +32,8 @@ void ScheduledTask::Routine::Do() } ScheduledTask::ScheduledTask(fn_t const & fn, unsigned ms) + : m_routine(new Routine(fn, ms, &m_cond)) { - m_routine.reset(new Routine(fn, ms, &m_cond)); m_thread.Create(m_routine.get()); } |