From 9b4ef76fc67f418783547cbfae83e23ce3b72a08 Mon Sep 17 00:00:00 2001 From: Daehyung Jo Date: Mon, 29 Oct 2012 09:27:59 +0900 Subject: [PATCH] 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 --- src/Commons/ThreadPool.cpp | 9 +++++++++ src/Commons/ThreadPool.h | 16 +++++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) 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 }; -- 2.7.4