commit | a3c71bb32e6a2dd93a54525c572a457234caae22 | [log] [tgz] |
---|---|---|
author | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Fri Jan 18 09:59:24 2013 -0800 |
committer | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Fri Jan 18 09:59:24 2013 -0800 |
tree | bf8a5d1c24a3044943bd7ad9fc33e841a365947d | |
parent | c321d7c3402e017097da08a0ac7960ada02b56aa [diff] [blame] |
Revert "scheduler shutdown" This reverts commit e54668110ece4c6113a4e880f6ce5c21636978e5.
diff --git a/scheduler/scheduler.cc b/scheduler/scheduler.cc index e7630d2..225e484 100644 --- a/scheduler/scheduler.cc +++ b/scheduler/scheduler.cc
@@ -82,13 +82,13 @@ void Scheduler::shutdown() { - WriteLock lock(m_mutex); - if (m_running) { - event_base_loopbreak(m_base); - m_thread.join(); + WriteLock lock(m_mutex); m_running = false; } + + event_base_loopbreak(m_base); + m_thread.join(); } bool