replace assert with CC_ASSERT (#10913)

* replace assert with CC_ASSERT
This commit is contained in:
minggo
2022-04-29 10:18:41 +08:00
committed by GitHub
parent fa25709788
commit 8e7669bf92
65 changed files with 303 additions and 627 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ void ThreadPool::stop() {
}
void ThreadPool::addThread() {
assert(_workers.size() < MAX_THREAD_COUNT);
CC_ASSERT(_workers.size() < MAX_THREAD_COUNT);
auto workerLoop = [this]() {
while (_running) {