From: Daehyung Jo Date: Mon, 29 Oct 2012 00:27:59 +0000 (+0900) Subject: Add thread enums for new plugin modules. X-Git-Tag: submit/trunk/20121102.073626~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b4ef76fc67f418783547cbfae83e23ce3b72a08;p=platform%2Fframework%2Fweb%2Fwrt-plugins-common.git Add thread enums for new plugin modules. [Issue#] N/A [Problem] N/A [Cause] N/A [Solution] N/A [SCMRequest] N/A Change-Id: Iddffb1a722521974c97d1c1d121ea0df7c86a6d1 --- diff --git a/src/Commons/ThreadPool.cpp b/src/Commons/ThreadPool.cpp index 748e20c..e481b1f 100755 --- a/src/Commons/ThreadPool.cpp +++ b/src/Commons/ThreadPool.cpp @@ -190,6 +190,15 @@ DPL::Thread *ThreadPool::getThreadRef(ThreadEnum::Enumeration type) case ThreadEnum::SE_THREAD: thandle = getThreadHandleCreateIfNotExists(ThreadEnum::SE_THREAD); break; + case ThreadEnum::DOWNLOAD_THREAD: + thandle = getThreadHandleCreateIfNotExists(ThreadEnum::DOWNLOAD_THREAD); + break; + case ThreadEnum::PUSH_THREAD: + thandle = getThreadHandleCreateIfNotExists(ThreadEnum::PUSH_THREAD); + break; + case ThreadEnum::SYNC_THREAD: + thandle = getThreadHandleCreateIfNotExists(ThreadEnum::SYNC_THREAD); + break; // ..... default: LogError("no case statement for ThreadEnum"); diff --git a/src/Commons/ThreadPool.h b/src/Commons/ThreadPool.h index 86fb475..e595af8 100755 --- a/src/Commons/ThreadPool.h +++ b/src/Commons/ThreadPool.h @@ -64,16 +64,18 @@ class ThreadEnum POWER_THREAD, PLUGIN_TEMPLETE_THREAD, BLUETOOTH_THREAD, - APPLICATION_THREAD, + APPLICATION_THREAD, GYROSCOPE_THREAD, - CLOCK_THREAD, + CLOCK_THREAD, SYSTEMINFO_THREAD, - CALLHISTORY_THREAD, - ACCOUNT_THREAD, + CALLHISTORY_THREAD, + ACCOUNT_THREAD, NFC_THREAD, - MEDIACONTENT_THREAD, - SE_THREAD, - DOWNLOAD_THREAD, + MEDIACONTENT_THREAD, + SE_THREAD, + DOWNLOAD_THREAD, + PUSH_THREAD, + SYNC_THREAD, //.... size };