[TD-225] fix compiler error.

This commit is contained in:
Haojun Liao 2020-12-09 23:10:02 +08:00
parent e51f8e5f51
commit 7e84d868d9
1 changed files with 2 additions and 2 deletions

View File

@ -36,14 +36,14 @@ int32_t tWorkerInit(SWorkerPool *pPool) {
void tWorkerCleanup(SWorkerPool *pPool) {
for (int i = 0; i < pPool->max; ++i) {
SWorker *pWorker = pPool->worker + i;
if (pWorker->thread) {
if (pWorker->thread != 0) {
taosQsetThreadResume(pPool->qset);
}
}
for (int i = 0; i < pPool->max; ++i) {
SWorker *pWorker = pPool->worker + i;
if (pWorker->thread) {
if (pWorker->thread != 0) {
pthread_join(pWorker->thread, NULL);
}
}