Add the default constructor to Timer 19/135719/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 26 Jun 2017 05:43:18 +0000 (14:43 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 26 Jun 2017 05:43:18 +0000 (14:43 +0900)
Change-Id: I4113e58219c33744de17cbd6d23feb05cbe0383d
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
include/Timer.h
src/server/Timer.cpp

index fedd141..e5ddc2d 100644 (file)
@@ -27,6 +27,7 @@ namespace ctx {
        /* All timers expire in the context where the Timer object is created. */
        class EXPORT_API Timer {
        public:
+               Timer();
                Timer(GMainContext* mainContext);
 
                ~Timer();
index af07c11..a811936 100644 (file)
@@ -364,6 +364,11 @@ public:
 
 static std::atomic_uint __timerCnt;
 
+Timer::Timer()
+{
+       __mainContext = g_main_context_default();
+}
+
 Timer::Timer(GMainContext* mainContext) :
        __mainContext(mainContext)
 {