From 06a2777ce769346ba85aee9f38ccb237a2d72915 Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Mon, 23 Oct 2017 14:42:50 +0900 Subject: Remove the redundant thread loop Because libhomescreen already has a thread to receive events, we can remove the thread loop in libhomescreen. Related Commit: https://gerrit.automotivelinux.org/gerrit/#/c/11403/ BUG-AGL: SPEC-989 Change-Id: I32d65efcf32f3395719837339659ff94b3e64889 Signed-off-by: zheng_wenlong --- sample/template/main.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'sample/template') diff --git a/sample/template/main.cpp b/sample/template/main.cpp index ccbe935..589d314 100644 --- a/sample/template/main.cpp +++ b/sample/template/main.cpp @@ -135,10 +135,6 @@ int main(int argc, char *argv[]) } }); - // Run event loop for HomeScreen - hs->runEventloop(); - - /* * Set SoundManager */ @@ -148,7 +144,6 @@ int main(int argc, char *argv[]) smw->subscribe(QString("removedMainConnection")); smw->subscribe(QString("asyncSetSourceState")); smw->subscribe(QString("asyncConnect")); - smw->run_eventloop(); // Set context property for SoundManager context->setContextProperty("smw", smw); -- cgit 1.2.3-korg