Some states acquire a wakelock to be sure that the system is kept awake 00/139900/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Fri, 21 Jul 2017 03:13:20 +0000 (12:13 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Fri, 21 Jul 2017 03:13:20 +0000 (12:13 +0900)
Change-Id: I02184f3ebd46ed8a7fded5b72575fdc425016660
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/server/JobState.h

index a03891a9bcafd06ee5059c9ca67252b6c85841dc..f9eea698b2060584ea11244b75f1a26c509faf9a 100644 (file)
@@ -18,6 +18,7 @@
 #define __CONTEXT_JOB_SCHEDULER_JOB_STATE_H__
 
 #include <string>
+#include <WakeLock.h>
 #include <IClient.h>
 #include <JobInfo.h>
 #include "SchedTimer.h"
@@ -84,6 +85,9 @@ namespace ctx {
                ~ReqVerificationState();
 
                bool execute();
+
+       private:
+               WakeLock __wakeLock;
        };
 
 
@@ -96,6 +100,9 @@ namespace ctx {
 
                void setClient(IClient* client);
                void jobFinished();
+
+       private:
+               WakeLock __wakeLock;
        };
 
 
@@ -106,6 +113,9 @@ namespace ctx {
                ~ClosingState();
 
                bool execute();
+
+       private:
+               WakeLock __wakeLock;
        };
 
 }