This API will be used by global wrt-service (thread model)
This singleton TaskQueue instance should have smack label same as
pid's smack label.
After a service app is launched, this TaskQueue thread has app's
smack label. Then, smack violation might be happened.
Thus, to initialize early before app creation, this patch exposes
CreateTaskQueue() funtion for WebRuntime.
Change-Id: I108bed31dbf0dbd1b54a6781530b95618584b0f8
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
}
} // namespace common
+
+extern "C" {
+
+__attribute__ ((visibility("default"))) void CreateTaskQueue() {
+ common::TaskQueue::GetInstance();
+ LoggerI("Create TaskQueue");
+}
+
+}