fix(src/util/timer): uninit var
This commit is contained in:
parent
59c8a36f40
commit
e551b4ff09
1 changed files with 4 additions and 3 deletions
|
|
@ -8,10 +8,12 @@ Author: Gabriel Ebner
|
|||
|
||||
#if defined(LEAN_MULTI_THREAD)
|
||||
namespace lean {
|
||||
|
||||
constexpr chrono::steady_clock::duration accuracy = chrono::milliseconds(10);
|
||||
|
||||
single_timer::single_timer() : m_thread(std::bind(&single_timer::worker, this)) {}
|
||||
single_timer::single_timer():
|
||||
m_shutting_down(false),
|
||||
m_thread(std::bind(&single_timer::worker, this)) {}
|
||||
|
||||
single_timer::~single_timer() {
|
||||
{
|
||||
unique_lock<mutex> lock(m_mutex);
|
||||
|
|
@ -55,6 +57,5 @@ void single_timer::reset() {
|
|||
m_cb = nullptr;
|
||||
m_timer_changed.notify_one();
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue