From ad34d43426a49a050c807a9fffcda0ccf8bb23d2 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Wed, 14 Sep 2011 17:33:20 +0300 Subject: [PATCH] Initialize class members in EVENT_LOOP constructor --- projects/stargazer/eventloop.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/projects/stargazer/eventloop.cpp b/projects/stargazer/eventloop.cpp index 1d1a209d..dd17de9b 100644 --- a/projects/stargazer/eventloop.cpp +++ b/projects/stargazer/eventloop.cpp @@ -6,7 +6,12 @@ #include "eventloop.h" EVENT_LOOP::EVENT_LOOP() - : ACTIONS_LIST() + : ACTIONS_LIST(), + _running(false), + _stopped(true), + _tid(), + _mutex(), + _condition() { pthread_mutex_init(&_mutex, NULL); pthread_cond_init(&_condition, NULL); -- 2.44.2