]> git.stg.codes - stg.git/commitdiff
Initialize class members in EVENT_LOOP constructor
authorMaxim Mamontov <faust.madf@gmail.com>
Wed, 14 Sep 2011 14:33:20 +0000 (17:33 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Wed, 14 Sep 2011 14:33:20 +0000 (17:33 +0300)
projects/stargazer/eventloop.cpp

index 1d1a209d9bc9e574bcac360d2a8b4d95e4fb8838..dd17de9b07a3c9ee6f488817b38fc9dcc8925adb 100644 (file)
@@ -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);