ref: b29760ee31c51b636ae2174a5c1db134c0b6aa88
parent: ade32f5c488c2c56c376ffba114a0be79be2b630
author: Sijia Chen <sijchen@cisco.com>
date: Thu Oct 15 07:31:34 EDT 2015
remove unneeded parts
--- a/codec/common/inc/WelsThreadPool.h
+++ b/codec/common/inc/WelsThreadPool.h
@@ -42,7 +42,6 @@
#ifndef _WELS_THREAD_POOL_H_
#define _WELS_THREAD_POOL_H_
-#include <map>
#include <stdio.h>
#include "WelsTask.h"
#include "WelsTaskThread.h"
@@ -97,7 +96,6 @@
private:
int32_t m_iMaxThreadNum;
- //std::list<IWelsTask*> m_cWaitedTasks;
CWelsCircleQueue<IWelsTask>* m_cWaitedTasks;
CWelsCircleQueue<CWelsTaskThread>* m_cIdleThreads;
CWelsList<CWelsTaskThread>* m_cBusyThreads;
--- a/codec/common/src/WelsThreadPool.cpp
+++ b/codec/common/src/WelsThreadPool.cpp
@@ -235,11 +235,11 @@
}
int32_t CWelsThreadPool::GetBusyThreadNum() {
- return static_cast<int32_t> (m_cBusyThreads->size());
+ return m_cBusyThreads->size();
}
int32_t CWelsThreadPool::GetIdleThreadNum() {
- return static_cast<int32_t> (m_cIdleThreads->size());
+ return m_cIdleThreads->size();
}
int32_t CWelsThreadPool::GetWaitedTaskNum() {