mirror of
https://github.com/znc/znc.git
synced 2026-04-30 18:42:25 +02:00
Use member initialization lists [-Weffc++] (#270)
This commit is contained in:
@@ -34,7 +34,7 @@ CThreadPool& CThreadPool::Get() {
|
||||
return pool;
|
||||
}
|
||||
|
||||
CThreadPool::CThreadPool() : m_done(false), m_num_threads(0), m_num_idle(0) {
|
||||
CThreadPool::CThreadPool() : m_mutex(), m_cond(), m_cancellationCond(), m_exit_cond(), m_done(false), m_num_threads(0), m_num_idle(0), m_iJobPipe{0,0}, m_jobs() {
|
||||
if (pipe(m_iJobPipe)) {
|
||||
DEBUG("Ouch, can't open pipe for thread pool: " << strerror(errno));
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user