mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
Adds CCThreadPool.cpp/.h to vs project.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user