Adds CCThreadPool.cpp/.h to vs project.

This commit is contained in:
James Chen
2017-09-26 14:30:53 +08:00
parent 7ffb0d40db
commit 5c5a0a257a
4 changed files with 12 additions and 10 deletions
+2 -3
View File
@@ -26,7 +26,6 @@
****************************************************************************/
#include "base/CCThreadPool.h"
#include <sys/time.h>
#ifdef __ANDROID__
@@ -165,7 +164,7 @@ bool ThreadPool::tryShrinkPool()
for (int i = 0; i < _maxThreadNum; ++i)
{
if (threadIDsToJoin.size() >= maxThreadNumToJoin)
if ((int)threadIDsToJoin.size() >= maxThreadNumToJoin)
{
break;
}
@@ -330,7 +329,7 @@ void ThreadPool::stopTasksByType(TaskType type)
void ThreadPool::joinThread(int tid)
{
if (tid < 0 || tid >= _threads.size())
if (tid < 0 || tid >= (int)_threads.size())
{
LOGD("Invalid thread id %d\n", tid);
return;